diff --git a/src/screen_help.c b/src/screen_help.c
index 2f06adacd54499801dc99ad5754c83b5e727c2e5..8804c950bd22735da8b7be9a28af74797c3cb085 100644 (file)
--- a/src/screen_help.c
+++ b/src/screen_help.c
{ 0, CMD_SCREEN_HELP, NULL },
{ 0, CMD_SCREEN_PLAY, NULL },
{ 0, CMD_SCREEN_FILE, NULL },
{ 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
#ifdef ENABLE_SEARCH_SCREEN
{ 0, CMD_SCREEN_SEARCH, NULL },
#endif
{ 0, CMD_LIST_RFIND_NEXT, NULL },
{ 0, CMD_TOGGLE_FIND_WRAP, NULL },
{ 0, CMD_LOCATE, NULL },
{ 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 },
{ 0, CMD_NONE, NULL },
{ 0, CMD_QUIT, NULL },
static list_window_t *lw;
static const char *
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];
{
static char buf[512];
return NULL;
if (help_text[idx].highlight)
return NULL;
if (help_text[idx].highlight)
- *highlight = 1;
+ *highlight = true;
if (help_text[idx].command == CMD_NONE) {
if (help_text[idx].text)
if (help_text[idx].command == CMD_NONE) {
if (help_text[idx].text)
help_init(WINDOW *w, int cols, int rows)
{
lw = list_window_init(w, cols, rows);
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
}
static void