Disable notebook border if no tabs are visible
This commit is contained in:
parent
b9ede07d1b
commit
f04861e18c
1 changed files with 4 additions and 0 deletions
|
@ -212,6 +212,7 @@ _toggle_tabbar_smartly (MidoriBrowser* browser)
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (browser->notebook), n > 1);
|
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (browser->notebook), n > 1);
|
||||||
|
gtk_notebook_set_show_border (GTK_NOTEBOOK (browser->notebook), n > 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -5513,7 +5514,10 @@ midori_browser_set_property (GObject* object,
|
||||||
if (browser->show_tabs)
|
if (browser->show_tabs)
|
||||||
_toggle_tabbar_smartly (browser);
|
_toggle_tabbar_smartly (browser);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (browser->notebook), FALSE);
|
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (browser->notebook), FALSE);
|
||||||
|
gtk_notebook_set_show_border (GTK_NOTEBOOK (browser->notebook), FALSE);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
|
|
Loading…
Reference in a new issue