[glade/margins] * plugins/gtk+/glade-gtk-grid.c: Update placeholders when a grid child's width or height child p



commit cbc411b4ab8d67215286aa1f95c5cb1fd581338e
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Wed Oct 5 17:17:22 2011 -0400

    	* plugins/gtk+/glade-gtk-grid.c: Update placeholders when a grid child's
    	  width or height child properties change.

 ChangeLog                     |    5 +++++
 plugins/gtk+/glade-gtk-grid.c |    9 ++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4d2506f..c7c7cd1 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 c15540b..b8a247a 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]