diff options
author | Kalle Wallin <kaw@linux.se> | 2004-03-24 15:17:52 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-03-24 15:17:52 +0000 |
commit | b30908800a6594524171afb1eed22413f3e85bba (patch) | |
tree | f36ded987c0795c2246361d5333a5194bad0349b /screen_help.c | |
parent | ecaa2131695342d84a3cc3b472032a7805e34a8b (diff) | |
download | mpd-b30908800a6594524171afb1eed22413f3e85bba.tar.gz mpd-b30908800a6594524171afb1eed22413f3e85bba.tar.xz mpd-b30908800a6594524171afb1eed22413f3e85bba.zip |
Moved list window fuctions to list_window.c.
Added function list_window_cmd() for basic commands (movment).
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@454 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'screen_help.c')
-rw-r--r-- | screen_help.c | 36 |
1 files changed, 4 insertions, 32 deletions
diff --git a/screen_help.c b/screen_help.c index 3d01363b9..5320647be 100644 --- a/screen_help.c +++ b/screen_help.c @@ -1,8 +1,3 @@ -/* - * $Id: screen_help.c,v 1.8 2004/03/17 13:40:25 kalle Exp $ - * - */ - #include <stdlib.h> #include <string.h> #include <glib.h> @@ -13,6 +8,7 @@ #include "mpc.h" #include "command.h" #include "screen.h" +#include "screen_utils.h" #include "screen_help.h" typedef struct @@ -137,30 +133,6 @@ help_cmd(screen_t *screen, mpd_client_t *c, command_t cmd) { switch(cmd) { - case CMD_LIST_PREVIOUS: - list_window_previous(screen->helplist); - screen->helplist->repaint=1; - break; - case CMD_LIST_NEXT: - list_window_next(screen->helplist, help_text_rows); - screen->helplist->repaint=1; - break; - case CMD_LIST_FIRST: - list_window_first(screen->helplist); - screen->helplist->repaint = 1; - break; - case CMD_LIST_LAST: - list_window_last(screen->helplist, help_text_rows); - screen->helplist->repaint = 1; - break; - case CMD_LIST_PREVIOUS_PAGE: - list_window_previous_page(screen->helplist); - screen->helplist->repaint = 1; - break; - case CMD_LIST_NEXT_PAGE: - list_window_next_page(screen->helplist, help_text_rows); - screen->helplist->repaint = 1; - break; case CMD_LIST_FIND: if( screen->findbuf ) { @@ -183,9 +155,9 @@ help_cmd(screen_t *screen, mpd_client_t *c, command_t cmd) screen_status_printf("Unable to find \'%s\'", screen->findbuf); beep(); } - break; + return 1; default: - return 0; + break; } - return 1; + return list_window_cmd(screen->helplist, help_text_rows, cmd); } |