[Xfce4-commits] <midori:master> No need to connect to tab-removed

Christian Dywan noreply at xfce.org
Tue Jul 3 01:48:03 CEST 2012


Updating branch refs/heads/master
         to f1db28a6ce320474143905fe9086a44ea2e92beb (commit)
       from 64d9533f7bc000be14a27b99a9cb3f7f57c8602a (commit)

commit f1db28a6ce320474143905fe9086a44ea2e92beb
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Jul 3 01:41:56 2012 +0200

    No need to connect to tab-removed
    
    By default the widget will be destroyed.

 midori/midori-browser.c |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 9e72a2b..b7cd000 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -5160,14 +5160,6 @@ midori_browser_notebook_tab_added_cb (GtkWidget*         notebook,
 }
 
 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,
                                          GraniteWidgetsTab* new_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);


More information about the Xfce4-commits mailing list