[glade/internal-child-support] Revert my long ago fix to never set packing properties onto GladeWidgets



commit 33dee90dd48fa895c82f376137453d4a2f418b27
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Mon Apr 4 22:42:47 2011 +0900

    Revert my long ago fix to never set packing properties onto GladeWidgets

 ChangeLog              |    5 +++--
 gladeui/glade-widget.c |    3 +--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b371265..e153e22 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
 	* glade-widget.[ch]:
 	  - Make glade_widget_find_child() have a const gchar argument
 	  - Use glade_widget_get_internal_child() instead of glade_widget_get_internal_func().
+	  - Revert my long ago fix to never set packing properties onto GladeWidgets
 
 2011-04-03  Cosimo Cecchi <cosimoc gnome org>
 	* doc/Makefile.am: don't use gtk+-2.0 for scanning the docs
@@ -3598,7 +3599,7 @@
 	* gladeui/glade-widget.[ch], gladeui/glade-project.c:
 	  Basic glade file saving framework in place, currently saves
 	  widgets, thier children and class types and widget names.
-	
+
 2008-04-01  Tristan Van Berkom <tvb gnome org>
 
 	* gladeui/glade-widget.[ch], gladeui/glade-widget-adaptor.[ch],
@@ -3610,7 +3611,7 @@
 	* gladeui/glade-widget.[ch], gladeui/glade-widget-adaptor.c,
 	  gladeui/glade-property.[ch]: Implemented loading of packing
 	  properties and normal properties.
-	
+
 2008-03-30  Tristan Van Berkom <tvb gnome org>
 
 	* gladeui/glade-parser.[ch]
diff --git a/gladeui/glade-widget.c b/gladeui/glade-widget.c
index ca89dd3..5f6d254 100644
--- a/gladeui/glade-widget.c
+++ b/gladeui/glade-widget.c
@@ -921,8 +921,7 @@ glade_widget_constructor (GType type,
   if (gwidget->priv->construct_reason == GLADE_CREATE_USER)
     glade_widget_sync_custom_props (gwidget);
 
-  if (!gwidget->priv->internal && gwidget->priv->parent && 
-      gwidget->priv->packing_properties == NULL)
+  if (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]