Disconnect add-browser callback when deactivating Colourful Tabs
This commit is contained in:
parent
b7d09f38bb
commit
e126271ad8
1 changed files with 9 additions and 0 deletions
|
@ -64,13 +64,21 @@ colorful_tabs_browser_add_tab_cb (MidoriBrowser* browser,
|
||||||
G_CALLBACK (colorful_tabs_view_notify_uri_cb), extension);
|
G_CALLBACK (colorful_tabs_view_notify_uri_cb), extension);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
colorful_tabs_app_add_browser_cb (MidoriApp* app,
|
||||||
|
MidoriBrowser* browser,
|
||||||
|
MidoriExtension* extension);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
colorful_tabs_deactivate_cb (MidoriExtension* extension,
|
colorful_tabs_deactivate_cb (MidoriExtension* extension,
|
||||||
MidoriBrowser* browser)
|
MidoriBrowser* browser)
|
||||||
{
|
{
|
||||||
guint i;
|
guint i;
|
||||||
GtkWidget* view;
|
GtkWidget* view;
|
||||||
|
MidoriApp* app = midori_extension_get_app (extension);
|
||||||
|
|
||||||
|
g_signal_handlers_disconnect_by_func (
|
||||||
|
app, colorful_tabs_app_add_browser_cb, extension);
|
||||||
g_signal_handlers_disconnect_by_func (
|
g_signal_handlers_disconnect_by_func (
|
||||||
extension, colorful_tabs_deactivate_cb, browser);
|
extension, colorful_tabs_deactivate_cb, browser);
|
||||||
i = 0;
|
i = 0;
|
||||||
|
@ -102,6 +110,7 @@ colorful_tabs_app_add_browser_cb (MidoriApp* app,
|
||||||
G_CALLBACK (colorful_tabs_deactivate_cb), browser);
|
G_CALLBACK (colorful_tabs_deactivate_cb), browser);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
colorful_tabs_activate_cb (MidoriExtension* extension,
|
colorful_tabs_activate_cb (MidoriExtension* extension,
|
||||||
MidoriApp* app)
|
MidoriApp* app)
|
||||||
|
|
Loading…
Reference in a new issue