From 09af931756c5b48d7f2782421638313c393ce89b Mon Sep 17 00:00:00 2001 From: MonkeyOfDoom Date: Sat, 19 Jun 2010 22:36:23 +0200 Subject: [PATCH] Disconnect tabs_minimized_add_tab_cb when deactivating --- extensions/tabs-minimized.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) { -- 2.39.5