[glade/glade-3-10] * plugins/gtk+/glade-gtk-grid.c: Update placeholders when a grid child's width or height child p
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/glade-3-10] * plugins/gtk+/glade-gtk-grid.c: Update placeholders when a grid child's width or height child p
- Date: Wed, 5 Oct 2011 21:15:41 +0000 (UTC)
commit bbbd6b467c50f6b94c68f60a60a43cda18bfb9de
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 a4494a5..1acd3e2 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]