[glade] * gladeui/glade-widget.c: Fixed loading of notebook pages with construct-properties (bug 641590,



commit 54e14cd62697be51c2384b30b1ba351291c55275
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Fri Feb 25 15:30:35 2011 +0900

    	* gladeui/glade-widget.c: Fixed loading of notebook pages with construct-properties
    	  (bug 641590, patch by Craig Keogh).

 ChangeLog              |    5 +++++
 gladeui/glade-widget.c |    5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6027711..a957d85 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-25  Tristan Van Berkom <tristanvb openismus com>
+
+	* gladeui/glade-widget.c: Fixed loading of notebook pages with construct-properties
+	  (bug 641590, patch by Craig Keogh).
+
 2011-02-24  Tristan Van Berkom <tristanvb openismus com>
 
 	* gladeui/glade-editor.c: Optimize window resizing by hiding inner notebook pages
diff --git a/gladeui/glade-widget.c b/gladeui/glade-widget.c
index 2815311..942d54a 100644
--- a/gladeui/glade-widget.c
+++ b/gladeui/glade-widget.c
@@ -2521,6 +2521,11 @@ glade_widget_rebuild (GladeWidget * gwidget)
         glade_project_selection_add (project, gwidget->priv->object, TRUE);
     }
 
+  /* Ensure rebuilt widget visibility */
+  if (GTK_IS_WIDGET (gwidget->priv->object) && 
+      !GTK_IS_WINDOW (gwidget->priv->object))
+    gtk_widget_show_all (gwidget->priv->object);
+
   /* We shouldnt show if its not already visible */
   if (gwidget->priv->visible)
     glade_widget_show (gwidget);



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