From: Przemek Sitek Date: Mon, 13 Jul 2009 20:15:45 +0000 (+0200) Subject: Disable notebook border if no tabs are visible X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f04861e18c3c43efe4d30697830e3e060df13e78;p=midori Disable notebook border if no tabs are visible --- 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);