From f38fb440487dc7b9f9f8ac429d29418b38fba574 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 20 Jun 2009 23:31:57 +0200 Subject: [PATCH] Hide the default tab labels when Tab Panel is active --- extensions/tab-panel.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); -- 2.39.5