Code

po: updated PO template
[ncmpc.git] / src / screen_help.c
index adf9a03102fe805c194b2cc1e418f399b444aa57..423e85f59932cb843a67b6ab3ce23c7becc1881f 100644 (file)
@@ -27,7 +27,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <glib.h>
-#include <ncurses.h>
 
 typedef struct {
        signed char highlight;
@@ -82,6 +81,7 @@ static help_text_row_t help_text[] = {
        { 0, CMD_LIST_FIND_NEXT, NULL },
        { 0, CMD_LIST_RFIND_NEXT, NULL },
        { 0, CMD_TOGGLE_FIND_WRAP, NULL },
+       { 0, CMD_LOCATE, NULL },
        { 0, CMD_NONE, NULL },
        { 0, CMD_QUIT, NULL },
 
@@ -207,32 +207,31 @@ help_title(mpd_unused char *str, mpd_unused size_t size)
 }
 
 static void
-help_paint(mpd_unused mpdclient_t *c)
+help_paint(void)
 {
        list_window_paint(lw, list_callback, NULL);
 }
 
-static int
-help_cmd(screen_t *screen, mpd_unused mpdclient_t *c, command_t cmd)
+static bool
+help_cmd(mpd_unused mpdclient_t *c, command_t cmd)
 {
        if (list_window_scroll_cmd(lw, help_text_rows, cmd)) {
                list_window_paint(lw, list_callback, NULL);
                wrefresh(lw->w);
-               return 1;
+               return true;
        }
 
        lw->selected = lw->start+lw->rows;
-       if (screen_find(screen,
-                       lw,  help_text_rows,
+       if (screen_find(lw,  help_text_rows,
                        cmd, list_callback, NULL)) {
                /* center the row */
                list_window_center(lw, help_text_rows, lw->selected);
                list_window_paint(lw, list_callback, NULL);
                wrefresh(lw->w);
-               return 1;
+               return true;
        }
 
-       return 0;
+       return false;
 }
 
 const struct screen_functions screen_help = {