Code

screen_help: added the artist screen hotkey
[ncmpc.git] / src / screen_help.c
index 2f06adacd54499801dc99ad5754c83b5e727c2e5..8804c950bd22735da8b7be9a28af74797c3cb085 100644 (file)
@@ -48,6 +48,9 @@ static help_text_row_t help_text[] = {
        { 0, CMD_SCREEN_HELP, NULL },
        { 0, CMD_SCREEN_PLAY, NULL },
        { 0, CMD_SCREEN_FILE, NULL },
+#ifdef ENABLE_ARTIST_SCREEN
+       { 0, CMD_SCREEN_ARTIST, NULL },
+#endif
 #ifdef ENABLE_SEARCH_SCREEN
        { 0, CMD_SCREEN_SEARCH, NULL },
 #endif
@@ -81,6 +84,7 @@ static help_text_row_t help_text[] = {
        { 0, CMD_LIST_RFIND_NEXT, NULL },
        { 0, CMD_TOGGLE_FIND_WRAP, NULL },
        { 0, CMD_LOCATE, NULL },
+       { 0, CMD_VIEW, NULL },
        { 0, CMD_NONE, NULL },
        { 0, CMD_QUIT, NULL },
 
@@ -141,7 +145,7 @@ static help_text_row_t help_text[] = {
 static list_window_t *lw;
 
 static const char *
-list_callback(unsigned idx, int *highlight, G_GNUC_UNUSED void *data)
+list_callback(unsigned idx, bool *highlight, G_GNUC_UNUSED void *data)
 {
        static char buf[512];
 
@@ -149,7 +153,7 @@ list_callback(unsigned idx, int *highlight, G_GNUC_UNUSED void *data)
                return NULL;
 
        if (help_text[idx].highlight)
-               *highlight = 1;
+               *highlight = true;
 
        if (help_text[idx].command == CMD_NONE) {
                if (help_text[idx].text)
@@ -182,7 +186,7 @@ static void
 help_init(WINDOW *w, int cols, int rows)
 {
   lw = list_window_init(w, cols, rows);
-  lw->flags = LW_HIDE_CURSOR;
+       lw->hide_cursor = true;
 }
 
 static void