No need to connect to tab-removed
By default the widget will be destroyed.
This commit is contained in:
parent
64d9533f7b
commit
f1db28a6ce
1 changed files with 0 additions and 11 deletions
|
@ -5159,14 +5159,6 @@ midori_browser_notebook_tab_added_cb (GtkWidget* notebook,
|
||||||
midori_browser_set_current_page (browser, n);
|
midori_browser_set_current_page (browser, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
midori_browser_notebook_tab_removed_cb (GtkWidget* notebook,
|
|
||||||
GraniteWidgetsTab* tab,
|
|
||||||
MidoriBrowser* browser)
|
|
||||||
{
|
|
||||||
_midori_browser_remove_tab (browser, granite_widgets_tab_get_page (tab));
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
midori_browser_notebook_tab_switched_cb (GtkWidget* notebook,
|
midori_browser_notebook_tab_switched_cb (GtkWidget* notebook,
|
||||||
GraniteWidgetsTab* old_tab,
|
GraniteWidgetsTab* old_tab,
|
||||||
|
@ -6409,9 +6401,6 @@ midori_browser_init (MidoriBrowser* browser)
|
||||||
g_signal_connect (browser->notebook, "tab-added",
|
g_signal_connect (browser->notebook, "tab-added",
|
||||||
G_CALLBACK (midori_browser_notebook_tab_added_cb),
|
G_CALLBACK (midori_browser_notebook_tab_added_cb),
|
||||||
browser);
|
browser);
|
||||||
g_signal_connect (browser->notebook, "tab-removed",
|
|
||||||
G_CALLBACK (midori_browser_notebook_tab_removed_cb),
|
|
||||||
browser);
|
|
||||||
g_signal_connect (browser->notebook, "tab-switched",
|
g_signal_connect (browser->notebook, "tab-switched",
|
||||||
G_CALLBACK (midori_browser_notebook_tab_switched_cb),
|
G_CALLBACK (midori_browser_notebook_tab_switched_cb),
|
||||||
browser);
|
browser);
|
||||||
|
|
Loading…
Reference in a new issue