[epiphany-extensions/tabs-reloaded: 6/16] [tabs-reloaded] Disconnet signal handlers on detach



commit c2ae2edaad2302405ceb8b3c01ddc878cd0aaaf0
Author: Benjamin Otte <otte gnome org>
Date:   Wed Aug 5 16:55:47 2009 +0200

    [tabs-reloaded] Disconnet signal handlers on detach

 .../tabs-reloaded/ephy-tabs-reloaded-extension.c   |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/extensions/tabs-reloaded/ephy-tabs-reloaded-extension.c b/extensions/tabs-reloaded/ephy-tabs-reloaded-extension.c
index 8095584..1a36890 100644
--- a/extensions/tabs-reloaded/ephy-tabs-reloaded-extension.c
+++ b/extensions/tabs-reloaded/ephy-tabs-reloaded-extension.c
@@ -275,6 +275,14 @@ impl_detach_window (EphyExtension *ext,
 	notebook = gtk_paned_get_child2 (GTK_PANED (tabs));
 	parent = gtk_widget_get_parent (tabs);
 
+        g_signal_handlers_disconnect_matched (notebook,
+                                              G_SIGNAL_MATCH_FUNC,
+                                              0,
+                                              0,
+                                              NULL,
+                                              notebook_selection_changed,
+                                              NULL);
+
 	/* Remove the Sidebar, replacing our hpaned with the
 	 * notebook itself */
 	g_value_init (&position, G_TYPE_INT);



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