[PATCH] disconnect trash state signal when destroying pathbar



The attached patch should fix bug 519050. It will disconnect a signal
handler in the path bar's _finalize routine that has been registered in
_init:

http://bugzilla.gnome.org/show_bug.cgi?id=519050

best regards,
 Christian Neumair

-- 
Christian Neumair <cneumair gnome org>
Index: src/nautilus-pathbar.c
===================================================================
--- src/nautilus-pathbar.c	(Revision 13803)
+++ src/nautilus-pathbar.c	(Arbeitskopie)
@@ -338,6 +338,9 @@ nautilus_path_bar_finalize (GObject *obj
 		path_bar->desktop_icon = NULL;
 	}
 
+	g_signal_disconnect_by_func (nautilus_trash_monitor_get (),
+				     trash_state_changed_cb, path_bar);
+
         G_OBJECT_CLASS (nautilus_path_bar_parent_class)->finalize (object);
 }
 


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