diff options
author | portix <portix@gmx.net> | 2011-12-27 23:56:21 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2011-12-27 23:56:21 +0100 |
commit | ed9521828f10418f7a1c324903920d660d128245 (patch) | |
tree | 04cd33d70150547bf6af5f9799c6b34f813c13c3 /src/commands.c | |
parent | b39f6f7558caa7993162ef5a53ad7b42416b592a (diff) | |
download | dwb-ed9521828f10418f7a1c324903920d660d128245.zip |
Single status bar
--HG--
branch : experimental
Diffstat (limited to 'src/commands.c')
-rw-r--r-- | src/commands.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/commands.c b/src/commands.c index aa9680b2..ecb5913b 100644 --- a/src/commands.c +++ b/src/commands.c @@ -54,7 +54,7 @@ commands_simple_command(KeyMap *km) { dwb_set_normal_message(dwb.state.fview, false, "%s:", km->map->n.second); } else if (km->map->hide == ALWAYS_SM) { - CLEAR_COMMAND_TEXT(dwb.state.fview); + CLEAR_COMMAND_TEXT(); gtk_widget_hide(dwb.gui.entry); } } @@ -229,7 +229,7 @@ commands_allow_cookie(KeyMap *km, Arg *arg) { allowed = g_slist_prepend(allowed, c); } asked = g_slist_prepend(asked, (char*)domain); - CLEAR_COMMAND_TEXT(dwb.state.fview); + CLEAR_COMMAND_TEXT(); } else { allowed = g_slist_prepend(allowed, c); @@ -664,7 +664,7 @@ commands_toggle(Arg *arg, const char *filename, GList **tmp, const char *message } } else - CLEAR_COMMAND_TEXT(dwb.state.fview); + CLEAR_COMMAND_TEXT(); } DwbStatus @@ -846,9 +846,7 @@ DwbStatus commands_toggle_bars(KeyMap *km, Arg *arg) { dwb.state.bar_visible ^= arg->n; gtk_widget_set_visible(dwb.gui.topbox, dwb.state.bar_visible & BAR_VIS_TOP); - for (GList *l = dwb.state.views; l; l=l->next) { - gtk_widget_set_visible(VIEW(l)->statusbox, dwb.state.bar_visible & BAR_VIS_STATUS); - } + gtk_widget_set_visible(dwb.gui.statusbox, dwb.state.bar_visible & BAR_VIS_STATUS); return STATUS_OK; }/*}}}*/ DwbStatus |