From f04861e18c3c43efe4d30697830e3e060df13e78 Mon Sep 17 00:00:00 2001 From: Przemek Sitek Date: Mon, 13 Jul 2009 22:15:45 +0200 Subject: [PATCH] Disable notebook border if no tabs are visible --- midori/midori-browser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 07d965e3..750bbe1a 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -212,6 +212,7 @@ _toggle_tabbar_smartly (MidoriBrowser* browser) n++; } gtk_notebook_set_show_tabs (GTK_NOTEBOOK (browser->notebook), n > 1); + gtk_notebook_set_show_border (GTK_NOTEBOOK (browser->notebook), n > 1); } static void @@ -5513,7 +5514,10 @@ midori_browser_set_property (GObject* object, if (browser->show_tabs) _toggle_tabbar_smartly (browser); else + { gtk_notebook_set_show_tabs (GTK_NOTEBOOK (browser->notebook), FALSE); + gtk_notebook_set_show_border (GTK_NOTEBOOK (browser->notebook), FALSE); + } break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); -- 2.39.5