[ease] [shapes] Fixed shape selection radio button
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease] [shapes] Fixed shape selection radio button
- Date: Wed, 28 Jul 2010 13:53:16 +0000 (UTC)
commit a230fe1f197772245701c8e645f604934ea92129
Author: Nate Stedman <natesm gmail com>
Date: Wed Jul 28 09:52:08 2010 -0400
[shapes] Fixed shape selection radio button
The current shape type was not automatically
selected when the inspector widget was
created.
ease-core/ease-shape-element.vala | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ease-core/ease-shape-element.vala b/ease-core/ease-shape-element.vala
index 4993e6e..152d711 100644
--- a/ease-core/ease-shape-element.vala
+++ b/ease-core/ease-shape-element.vala
@@ -95,6 +95,15 @@ public class Ease.ShapeElement : CairoElement
var bg = new BackgroundWidget(background, this);
+ if (shape_type == ShapeType.RECTANGLE)
+ {
+ (builder.get_object("rect") as Gtk.ToggleButton).active = true;
+ }
+ else
+ {
+ (builder.get_object("oval") as Gtk.ToggleButton).active = true;
+ }
+
(builder.get_object("rect") as Gtk.Button).clicked.connect(() => {
shape_type = ShapeType.RECTANGLE;
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]