Disconnect tabs_minimized_add_tab_cb when deactivating

This commit is contained in:
MonkeyOfDoom 2010-06-19 22:36:23 +02:00 committed by Christian Dywan
parent 91ed4b7bc8
commit 09af931756

View 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)
{