summaryrefslogtreecommitdiff
path: root/plugins/gtk+/glade-tool-item-group-editor.c
diff options
context:
space:
mode:
authorDenis Washington <denisw@src.gnome.org>2012-01-17 19:30:21 +0100
committerDenis Washington <denisw@src.gnome.org>2012-01-17 19:30:21 +0100
commit72ceb68b79fc1bd2a34f261169f44be1033a8e9a (patch)
treec204244425084c6460e3f03a66bcedea37acf173 /plugins/gtk+/glade-tool-item-group-editor.c
parentaa4bf12f62d914ad53378bf78d112e0fffd574ad (diff)
downloadglade-gbinding.tar.gz
Call glade_property_invalidate() properly in all GTK+ widget property editorsgbinding
Every situation where the user disables a property through the inspector should now correctly unbind any dependent bound properties, which fixes the last known major bug in the property binding code!
Diffstat (limited to 'plugins/gtk+/glade-tool-item-group-editor.c')
-rw-r--r--plugins/gtk+/glade-tool-item-group-editor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/gtk+/glade-tool-item-group-editor.c b/plugins/gtk+/glade-tool-item-group-editor.c
index c8678a6e..1703df07 100644
--- a/plugins/gtk+/glade-tool-item-group-editor.c
+++ b/plugins/gtk+/glade-tool-item-group-editor.c
@@ -151,6 +151,7 @@ label_toggled (GtkWidget * widget,
glade_widget_get_name (gwidget));
property = glade_widget_get_property (gwidget, "label-widget");
+ glade_command_invalidate (property);
glade_command_set_property (property, NULL);
property = glade_widget_get_property (gwidget, "label");
@@ -187,6 +188,7 @@ label_widget_toggled (GtkWidget * widget, GladeToolItemGroupEditor * group_edito
glade_widget_get_name (gwidget));
property = glade_widget_get_property (gwidget, "label");
+ glade_command_invalidate (property);
glade_command_set_property (property, NULL);
property = glade_widget_get_property (gwidget, "custom-label");
glade_command_set_property (property, TRUE);