summaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
authorportix <none@none>2012-09-17 21:16:40 +0200
committerportix <none@none>2012-09-17 21:16:40 +0200
commit3e6ba3478f1200df7d7cd5ccd57728e3f5122be9 (patch)
treef59d35a3e7d922b0e11496f21434b0f2a3954214 /src/commands.c
parent39bf9b69013e2bf04564f1ab8dc6c46511534c77 (diff)
downloaddwb-3e6ba3478f1200df7d7cd5ccd57728e3f5122be9.zip
New option show-single-tab
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.c b/src/commands.c
index da2645da..5e85035c 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -679,7 +679,7 @@ commands_only(KeyMap *km, Arg *arg) {
}/*}}}*/
static void
commands_set_bars(int status) {
- gtk_widget_set_visible(dwb.gui.topbox, status & BAR_VIS_TOP);
+ gtk_widget_set_visible(dwb.gui.topbox, (status & BAR_VIS_TOP) && (GET_BOOL("show-single-tab") || dwb.state.views->next));
gtk_widget_set_visible(dwb.gui.bottombox, status & BAR_VIS_STATUS);
if ((status & BAR_VIS_STATUS) ) {
dwb_dom_remove_from_parent(WEBKIT_DOM_NODE(CURRENT_VIEW()->hover.element), NULL);