diff options
author | portix <portix@gmx.net> | 2012-01-06 00:09:25 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2012-01-06 00:09:25 +0100 |
commit | d81f9d3227ce491a6623e675df9475d43c33d4f0 (patch) | |
tree | 3f441447db7ac8af58ffc7050929d7fa6cc37505 /src/commands.c | |
parent | 661c1aac6371e027f55da5378ddad33b1984c755 (diff) | |
download | dwb-d81f9d3227ce491a6623e675df9475d43c33d4f0.zip |
Return DwbStatus in all functions in commands.c
Diffstat (limited to 'src/commands.c')
-rw-r--r-- | src/commands.c | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/src/commands.c b/src/commands.c index e4711f4f..5600a552 100644 --- a/src/commands.c +++ b/src/commands.c @@ -63,6 +63,7 @@ commands_simple_command(KeyMap *km) { dwb_set_error_message(dwb.state.fview, arg->e ? arg->e : km->map->error); break; case STATUS_END: + dwb_clean_key_buffer(); return; default: break; } @@ -72,9 +73,10 @@ commands_simple_command(KeyMap *km) { }/*}}}*/ /* commands_add_view(KeyMap *, Arg *) {{{*/ -void +DwbStatus commands_add_view(KeyMap *km, Arg *arg) { view_add(arg->p, false); + return STATUS_OK; }/*}}}*/ /* commands_set_setting {{{*/ @@ -309,30 +311,12 @@ commands_scroll(KeyMap *km, Arg *arg) { }/*}}}*/ /* commands_set_zoom_level(KeyMap *km, Arg *arg) {{{*/ -void +DwbStatus commands_set_zoom_level(KeyMap *km, Arg *arg) { GList *gl = arg->p ? arg->p : dwb.state.fview; webkit_web_view_set_zoom_level(WEBKIT_WEB_VIEW(((View*)gl->data)->web), arg->d); -}/*}}}*/ - -/* commands_set_orientation(KeyMap *km, Arg *arg) {{{*/ -#if 0 -DwbStatus -commands_set_orientation(KeyMap *km, Arg *arg) { - Layout l; - if (arg->n) { - l = arg->n; - } - else { - dwb.state.layout ^= BOTTOM_STACK; - l = dwb.state.layout; - } - gtk_orientable_set_orientation(GTK_ORIENTABLE(dwb.gui.paned), l & BOTTOM_STACK ); - gtk_orientable_set_orientation(GTK_ORIENTABLE(dwb.gui.right), (l & BOTTOM_STACK) ^ 1); - dwb_resize(dwb.state.size); return STATUS_OK; }/*}}}*/ -#endif /* History {{{*/ DwbStatus @@ -366,9 +350,10 @@ commands_open_startpage(KeyMap *km, Arg *arg) { } /*}}}*/ /* commands_remove_view(KeyMap *km, Arg *arg) {{{*/ -void +DwbStatus commands_remove_view(KeyMap *km, Arg *arg) { view_remove(NULL); + return STATUS_OK; }/*}}}*/ static gboolean |