From: MonkeyOfDoom Date: Sat, 19 Jun 2010 20:36:23 +0000 (+0200) Subject: Disconnect tabs_minimized_add_tab_cb when deactivating X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09af931756c5b48d7f2782421638313c393ce89b;p=midori Disconnect tabs_minimized_add_tab_cb when deactivating --- diff --git a/extensions/tabs-minimized.c b/extensions/tabs-minimized.c index 42d43518..0d14dc68 100644 --- a/extensions/tabs-minimized.c +++ b/extensions/tabs-minimized.c @@ -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) {