[glade3/glade-3-8] * plugins/gtk+/glade-gtk.c: Fixed crash with notebook rebuilding children (bug 365462).



commit 7ed8ee7730751b8026b34d90e5531887b543652c
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Thu Dec 16 03:33:25 2010 +0900

    	* plugins/gtk+/glade-gtk.c: Fixed crash with notebook rebuilding children (bug 365462).

 ChangeLog                |    2 ++
 plugins/gtk+/glade-gtk.c |    2 --
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5636e60..f70689d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -39,6 +39,8 @@
 	* gladeui/glade-palette.c: Add a label in a box to the palette items to avoid
 	  the evil ellipsization.
 
+	* plugins/gtk+/glade-gtk.c: Fixed crash with notebook rebuilding children (bug 365462).
+
 2010-12-14  Tristan Van Berkom <tristanvb openismus com>
 
 	* Reverted 3.0 commit, now targetting this branch to the final GTK+ 2.x chapter
diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c
index 971e426..73597f0 100644
--- a/plugins/gtk+/glade-gtk.c
+++ b/plugins/gtk+/glade-gtk.c
@@ -4189,8 +4189,6 @@ glade_gtk_notebook_replace_child (GladeWidgetAdaptor *adaptor,
 		glade_widget_pack_property_get (gcurrent, "position", &position);
 	else
 	{
-		g_assert (GLADE_IS_PLACEHOLDER (current));
-
 		if ((position = gtk_notebook_page_num (notebook, current)) < 0)
 		{
 			position = notebook_search_tab (notebook, current);



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