[glade3/glade-3-8] * gladeui/glade-base-editor.c: Fixed glade_base_editor_dispose to not access the signal editor,



commit d2807e9d694f2c2795ff1666a94db637000a1c75
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Thu Dec 16 17:55:22 2010 +0900

    	* gladeui/glade-base-editor.c: Fixed glade_base_editor_dispose to not access the signal
    	  editor, it's automatically destroyed as being a child of the editor.

 ChangeLog                   |    3 +++
 gladeui/glade-base-editor.c |    4 +---
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c34263b..216b697 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,9 @@
 	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Fixed GtkComboBox to handle cell-layout
 	  children as well as the possible internal entry (fixes bug 581580).
 
+	* gladeui/glade-base-editor.c: Fixed glade_base_editor_dispose to not access the signal
+	  editor, it's automatically destroyed as being a child of the editor.
+
 2010-12-15  Tristan Van Berkom <tristanvb openismus com>
 
 	* gladeui/glade-project.c: Cleanup glade_project_remove_object(), make sure row_deleted is
diff --git a/gladeui/glade-base-editor.c b/gladeui/glade-base-editor.c
index f47acb7..5e35c95 100644
--- a/gladeui/glade-base-editor.c
+++ b/gladeui/glade-base-editor.c
@@ -1168,7 +1168,6 @@ glade_base_editor_project_disconnect (GladeBaseEditor *editor)
 	if (e->properties_idle)
 		g_source_remove (e->properties_idle);
 	e->properties_idle = 0;
-
 }
 
 static void
@@ -1246,11 +1245,10 @@ glade_base_editor_dispose (GObject *object)
 {
 	GladeBaseEditor *cobj = GLADE_BASE_EDITOR (object);
 
-	glade_signal_editor_load_widget (cobj->priv->signal_editor, NULL);
-
 	reset_child_types (cobj);
 
 	glade_base_editor_project_disconnect (cobj);
+	cobj->priv->project = NULL;
 
 	if (cobj->priv->group)
 		cobj->priv->group =



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