nautilus r14295 - in branches/multiview: . src



Author: cneumair
Date: Sat Jun 28 18:54:10 2008
New Revision: 14295
URL: http://svn.gnome.org/viewvc/nautilus?rev=14295&view=rev

Log:
2008-06-28  Christian Neumair  <cneumair gnome org>

	* src/nautilus-window-slot.c
	(nautilus_window_slot_update_query_editor):
	Destroy old query editor before creating new one.


Modified:
   branches/multiview/ChangeLog
   branches/multiview/src/nautilus-window-slot.c

Modified: branches/multiview/src/nautilus-window-slot.c
==============================================================================
--- branches/multiview/src/nautilus-window-slot.c	(original)
+++ branches/multiview/src/nautilus-window-slot.c	Sat Jun 28 18:54:10 2008
@@ -368,8 +368,10 @@
 void
 nautilus_window_slot_update_query_editor (NautilusWindowSlot *slot)
 {
-	/* at this point, the old query editor must have been destroyed. */
-	g_assert (slot->query_editor == NULL);
+	if (slot->query_editor != NULL) {
+		gtk_widget_destroy (GTK_WIDGET (slot->query_editor));
+		slot->query_editor = NULL;
+	}
 
         EEL_CALL_METHOD (NAUTILUS_WINDOW_SLOT_CLASS, slot,
                          update_query_editor, (slot));



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