From: Christian Dywan Date: Sat, 20 Jun 2009 21:31:57 +0000 (+0200) Subject: Hide the default tab labels when Tab Panel is active X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f38fb440487dc7b9f9f8ac429d29418b38fba574;p=midori Hide the default tab labels when Tab Panel is active --- diff --git a/extensions/tab-panel.c b/extensions/tab-panel.c index 0d270dee..3724c7f7 100644 --- a/extensions/tab-panel.c +++ b/extensions/tab-panel.c @@ -23,6 +23,13 @@ tab_panel_deactivate_cb (MidoriExtension* extension, GtkWidget* panel) { MidoriApp* app = midori_extension_get_app (extension); + MidoriBrowser* browser; + GtkWidget* notebook; + + browser = midori_browser_get_for_widget (panel); + notebook = katze_object_get_object (browser, "notebook"); + gtk_notebook_set_show_tabs (GTK_NOTEBOOK (notebook), TRUE); + g_object_unref (notebook); gtk_widget_destroy (panel); g_signal_handlers_disconnect_by_func ( @@ -41,6 +48,10 @@ tab_panel_app_add_browser_cb (MidoriApp* app, GtkWidget* toolbar; /* GtkToolItem* toolitem; */ + notebook = katze_object_get_object (browser, "notebook"); + gtk_notebook_set_show_tabs (GTK_NOTEBOOK (notebook), FALSE); + g_object_unref (notebook); + panel = katze_object_get_object (browser, "panel"); notebook = gtk_notebook_new (); gtk_notebook_set_tab_pos (GTK_NOTEBOOK (notebook), GTK_POS_RIGHT);