]> spindle.queued.net Git - midori/commitdiff
Disconnect tabs_minimized_add_tab_cb when deactivating
authorMonkeyOfDoom <pixelmonkey@ensellitis.com>
Sat, 19 Jun 2010 20:36:23 +0000 (22:36 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 19 Jun 2010 20:37:46 +0000 (22:37 +0200)
extensions/tabs-minimized.c

index 42d43518da6441e4c2c5aa8e3c35319ac8be3f9e..0d14dc68712dd86c46a6769c13ef5e141ae390ce 100644 (file)
@@ -17,6 +17,11 @@ tabs_minimized_app_add_browser_cb (MidoriApp*       app,
                                    MidoriBrowser*   browser,
                                    MidoriExtension* extension);
 
+static void
+tabs_minimized_add_tab_cb (MidoriBrowser*   browser,
+                           MidoriView*      tab,
+                           MidoriExtension* extension);
+
 static void
 tabs_minimized_deactivate_cb (MidoriExtension* extension,
                               MidoriBrowser*   browser)
@@ -27,10 +32,12 @@ tabs_minimized_deactivate_cb (MidoriExtension* extension,
         extension, tabs_minimized_deactivate_cb, browser);
     g_signal_handlers_disconnect_by_func (
         app, tabs_minimized_app_add_browser_cb, extension);
+    g_signal_handlers_disconnect_by_func (
+        browser, tabs_minimized_add_tab_cb, extension);
 }
 
 static void
-tabs_minimized_add_tab_cb (MidoriApp*       app,
+tabs_minimized_add_tab_cb (MidoriBrowser*   browser,
                            MidoriView*      tab,
                            MidoriExtension* extension)
 {