summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2011-10-05 17:17:22 -0400
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2011-10-05 17:17:22 -0400
commitd2bcae583c784df9accf919338e011aa04c1ebbb (patch)
tree580371600520d6912bd7d8c68aa5dc0dd4eb2a1f
parent3d08e35b8c2a30d5a739e165f62a4b1fcb072cc5 (diff)
downloadglade-d2bcae583c784df9accf919338e011aa04c1ebbb.tar.gz
* plugins/gtk+/glade-gtk-grid.c: Update placeholders when a grid child's
width or height child properties change.
-rw-r--r--ChangeLog5
-rw-r--r--plugins/gtk+/glade-gtk-grid.c9
2 files changed, 9 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 4d2506f4..c7c7cd1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-05 Tristan Van Berkom <tvb@gnome.org>
+
+ * plugins/gtk+/glade-gtk-grid.c: Update placeholders when a grid child's
+ width or height child properties change.
+
2011-10-04 Tristan Van Berkom <tvb@gnome.org>
* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Ensure 'related-action'
diff --git a/plugins/gtk+/glade-gtk-grid.c b/plugins/gtk+/glade-gtk-grid.c
index c15540b9..b8a247a1 100644
--- a/plugins/gtk+/glade-gtk-grid.c
+++ b/plugins/gtk+/glade-gtk-grid.c
@@ -693,15 +693,14 @@ glade_gtk_grid_set_child_property (GladeWidgetAdaptor * adaptor,
container, child,
property_name, value);
- if (strcmp (property_name, "bottom-attach") == 0 ||
- strcmp (property_name, "left-attach") == 0 ||
- strcmp (property_name, "right-attach") == 0 ||
- strcmp (property_name, "top-attach") == 0)
+ if (strcmp (property_name, "left-attach") == 0 ||
+ strcmp (property_name, "top-attach") == 0 ||
+ strcmp (property_name, "width") == 0 ||
+ strcmp (property_name, "height") == 0)
{
/* Refresh placeholders */
glade_gtk_grid_refresh_placeholders (GTK_GRID (container));
}
-
}
static gboolean