aboutsummaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-12 14:10:03 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-12 14:10:03 +0100
commita3e324b2dfda42df320791b1efff1bf5217b7747 (patch)
treef339ba7492f3b51dbfea683204348d42dd2a9b33 /src
parent46bad7bb53e7f9c23f4dac4fb81716272cb71515 (diff)
new clipping system nearly nickel
Diffstat (limited to 'src')
-rw-r--r--src/GraphicObjects/Border.cs3
-rw-r--r--src/GraphicObjects/Label.cs3
-rw-r--r--src/GraphicObjects/RadioButton.cs3
3 files changed, 7 insertions, 2 deletions
diff --git a/src/GraphicObjects/Border.cs b/src/GraphicObjects/Border.cs
index 58ccff33..c8e4a7bb 100644
--- a/src/GraphicObjects/Border.cs
+++ b/src/GraphicObjects/Border.cs
@@ -62,6 +62,9 @@ namespace Crow
CairoHelpers.CairoRectangle(gr, rBack, CornerRadius);
gr.Stroke ();
}
+
+ if (child != null)
+ child.Paint (ref gr);
}
#endregion
}
diff --git a/src/GraphicObjects/Label.cs b/src/GraphicObjects/Label.cs
index 1ce9409b..4c7e7006 100644
--- a/src/GraphicObjects/Label.cs
+++ b/src/GraphicObjects/Label.cs
@@ -597,12 +597,11 @@ namespace Crow
SelBegin = -1;
SelRelease = -1;
SelectionInProgress = true;
+ registerForGraphicUpdate();//TODO:should put it in properties
}
//done at the end to set 'hasFocus' value after testing it
base.onMouseDown (sender, e);
-
- registerForGraphicUpdate();
}
public override void onMouseUp (object sender, MouseButtonEventArgs e)
{
diff --git a/src/GraphicObjects/RadioButton.cs b/src/GraphicObjects/RadioButton.cs
index 141a9887..297b4c2b 100644
--- a/src/GraphicObjects/RadioButton.cs
+++ b/src/GraphicObjects/RadioButton.cs
@@ -71,6 +71,9 @@ namespace Crow
get { return isChecked; }
set
{
+ if (isChecked == value)
+ return;
+
isChecked = value;
NotifyValueChanged ("IsChecked", value);