]> spindle.queued.net Git - midori/commitdiff
No need to connect to tab-removed
authorChristian Dywan <christian@twotoasts.de>
Mon, 2 Jul 2012 23:41:56 +0000 (01:41 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 2 Jul 2012 23:46:02 +0000 (01:46 +0200)
By default the widget will be destroyed.

midori/midori-browser.c

index 9e72a2bf83222600adee72cfcf5d549ea4a40671..b7cd00085dd16fd01c11aba3890099795e1f6171 100644 (file)
@@ -5159,14 +5159,6 @@ midori_browser_notebook_tab_added_cb (GtkWidget*         notebook,
     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
 midori_browser_notebook_tab_switched_cb (GtkWidget*         notebook,
                                          GraniteWidgetsTab* old_tab,
@@ -6409,9 +6401,6 @@ midori_browser_init (MidoriBrowser* browser)
     g_signal_connect (browser->notebook, "tab-added",
                       G_CALLBACK (midori_browser_notebook_tab_added_cb),
                       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_CALLBACK (midori_browser_notebook_tab_switched_cb),
                       browser);