[glade3] * gladeui/glade-editor.c: Fixed class header of GladeEditor to update when widgets unload (patch



commit cfeb1d7824697a54dc43927770453792acb4a25d
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Mon Dec 20 17:23:48 2010 +0900

    	* gladeui/glade-editor.c: Fixed class header of GladeEditor to update when
    	  widgets unload (patch by Marco Diego Aurélio Mesquita, bug 637541).

 ChangeLog              |    3 +++
 gladeui/glade-editor.c |    4 ++++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 517146a..528e349 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,9 @@
 	* gladeui/glade-project.c: Applying Marco Diego Aurélio Mesquita's patch to
 	  make the project preview only preview toplevels.
 
+	* gladeui/glade-editor.c: Fixed class header of GladeEditor to update when
+	  widgets unload (patch by Marco Diego Aurélio Mesquita, bug 637541).
+
 2010-12-19  Tristan Van Berkom <tristanvb openismus com>
 
 	* plugins/gtk+/glade-gtk.c: Fix alpha_sort_box_children() to give a consistent
diff --git a/gladeui/glade-editor.c b/gladeui/glade-editor.c
index 21935e7..b0e9875 100644
--- a/gladeui/glade-editor.c
+++ b/gladeui/glade-editor.c
@@ -346,6 +346,7 @@ glade_editor_update_class_field (GladeEditor *editor)
 	}
 	else
 	{
+		gtk_widget_hide (editor->class_icon);
 		gtk_widget_hide (editor->warning);
 		gtk_label_set_text (GTK_LABEL (editor->class_label), _("Properties"));
 	}
@@ -722,6 +723,9 @@ glade_editor_load_widget_real (GladeEditor *editor, GladeWidget *widget)
 
 		editor->loaded_widget = NULL;
 
+		/* Clear class header */
+		glade_editor_update_class_field (editor);
+
 		g_object_notify (G_OBJECT (editor), "widget");
 		return;
 	}



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