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



commit 78cf00174e6d184b632dac7e7d0d8c749ec4fcac
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Thu Dec 16 17:56:26 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.
    
    Conflicts:
    
    	ChangeLog

 ChangeLog                   |    3 +++
 gladeui/glade-base-editor.c |    4 +---
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0c9e9f4..5c28c56 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,9 @@
 
 	* doc/Makefile.am: For master branch, change doc build to link against libgladeui-2 library.
 
+	* 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]