summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fe44171)
raw | patch | inline | side by side (parent: fe44171)
author | Kalle Wallin <kaw@linux.se> | |
Sat, 27 Mar 2004 16:52:36 +0000 (16:52 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Sat, 27 Mar 2004 16:52:36 +0000 (16:52 +0000) |
command.c | patch | blob | history | |
command.h | patch | blob | history | |
screen_file.c | patch | blob | history | |
screen_help.c | patch | blob | history |
diff --git a/command.c b/command.c
index d254c4e031b840dcd9c5ac6030a85b5560373363..d2d1e68253d60403061678e58518b66141fcd6e3 100644 (file)
--- a/command.c
+++ b/command.c
{ { '?', 0, 0 }, CMD_LIST_RFIND, "Backward Find" },
{ { 'p', 0, 0 }, CMD_LIST_RFIND_NEXT, "Backward Find Previous" },
+
{ { TAB, 0, 0 }, CMD_SCREEN_NEXT, "Next screen" },
{ { STAB, 0, 0 }, CMD_SCREEN_PREVIOUS, "Previous screen" },
{ { F1, '1', 'h' }, CMD_SCREEN_HELP, "Help screen" },
{ { F2, '2', 0 }, CMD_SCREEN_PLAY, "Playlist screen" },
{ { F3, '3', 0 }, CMD_SCREEN_FILE, "Browse screen" },
// { { F4, '4', 0 }, CMD_SCREEN_SEARCH, "Search screen" },
+ { {'u', 0, 0 }, CMD_SCREEN_UPDATE, "Update screen" },
{ { 'q', 0, 0 }, CMD_QUIT, "Quit " PACKAGE },
diff --git a/command.h b/command.h
index 485b7534731c05b14e73c8f2d2709dd5278bf734..a7e08555b6cc0f35867536f45e806521f8b61e70 100644 (file)
--- a/command.h
+++ b/command.h
CMD_LIST_FIND_NEXT,
CMD_LIST_RFIND,
CMD_LIST_RFIND_NEXT,
+ CMD_SCREEN_UPDATE,
CMD_SCREEN_PREVIOUS,
CMD_SCREEN_NEXT,
CMD_SCREEN_PLAY,
diff --git a/screen_file.c b/screen_file.c
index 762752e0acbb7dfd8f5272e734b3ea7bf7460976..19230e0ce5d9f403d11a9ebae32db789787901f1 100644 (file)
--- a/screen_file.c
+++ b/screen_file.c
break;
case CMD_DELETE:
handle_delete(screen, c);
- return 1;
break;
+ case CMD_SCREEN_UPDATE:
+ mpc_update_filelist(c);
+ list_window_check_selected(screen->filelist, c->filelist_length);
+ screen_status_printf("Screen updated!");
+ return 1;
case CMD_LIST_FIND:
case CMD_LIST_RFIND:
case CMD_LIST_FIND_NEXT:
diff --git a/screen_help.c b/screen_help.c
index de5bfe3e28147c233a385519fab1a67a8cad37a0..09349a361b1242a037af9bb5d6d5b05bd59d263a 100644 (file)
--- a/screen_help.c
+++ b/screen_help.c
{ 0, CMD_PLAY, "Enter directory/Load playlist" },
{ 0, CMD_SELECT, "Add/remove song from playlist" },
{ 0, CMD_DELETE, "Delete playlist" },
+ { 0, CMD_SCREEN_UPDATE, "Update" },
{ 0, CMD_NONE, " " },
{ 0, CMD_NONE, " " },
{ 1, CMD_NONE, " " PACKAGE " version " VERSION },