[glade3] * gladeui/glade-widget.c: Dont set packing properties onto internal widgets.



commit 054032caa39d962dcbaa635dfe636573a2619e6b
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Mon Jan 10 15:50:36 2011 +0900

    	* gladeui/glade-widget.c: Dont set packing properties onto internal widgets.

 ChangeLog              |    4 ++++
 gladeui/glade-widget.c |    3 ++-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 522ffa0..4effd74 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-10  Tristan Van Berkom <tristanvb openismus com>
+
+	* gladeui/glade-widget.c: Dont set packing properties onto internal widgets.
+
 2011-01-09  Tristan Van Berkom <tristanvb openismus com>
 
 	* gladeui/glade-design-layout.c: Fixed to not hide widgets when removing
diff --git a/gladeui/glade-widget.c b/gladeui/glade-widget.c
index 13fd0e0..696cae2 100644
--- a/gladeui/glade-widget.c
+++ b/gladeui/glade-widget.c
@@ -892,7 +892,8 @@ glade_widget_constructor (GType type,
   if (gwidget->priv->construct_reason == GLADE_CREATE_USER)
     glade_widget_sync_custom_props (gwidget);
 
-  if (gwidget->priv->parent && gwidget->priv->packing_properties == NULL)
+  if (!gwidget->priv->internal && gwidget->priv->parent && 
+      gwidget->priv->packing_properties == NULL)
     glade_widget_set_packing_properties (gwidget, gwidget->priv->parent);
 
   if (GTK_IS_WIDGET (gwidget->priv->object) &&



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