diff options
author | Max Kellermann <max@duempel.org> | 2008-11-07 08:27:14 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-07 08:27:14 +0100 |
commit | ab3876d4c059d4a076c49d1700067fe7b3696d54 (patch) | |
tree | f27f36687dc0277f52ee9a25cf8a27a0f5899253 /src | |
parent | 865a07f6753c23190a18c1a1429be144bf7069b2 (diff) | |
download | mpd-ab3876d4c059d4a076c49d1700067fe7b3696d54.tar.gz mpd-ab3876d4c059d4a076c49d1700067fe7b3696d54.tar.xz mpd-ab3876d4c059d4a076c49d1700067fe7b3696d54.zip |
configure.ac: added --disable-help-screen
Diffstat (limited to '')
-rw-r--r-- | src/Makefile.am | 5 | ||||
-rw-r--r-- | src/screen.c | 2 | ||||
-rw-r--r-- | src/screen_list.c | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index af91939b1..e03f645f8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -66,7 +66,6 @@ ncmpc_SOURCES = \ screen_play.c\ screen_browser.c\ screen_file.c\ - screen_help.c\ list_window.c\ colors.c\ support.c\ @@ -76,6 +75,10 @@ ncmpc_SOURCES = \ utils.c\ str_pool.c +if ENABLE_HELP_SCREEN +ncmpc_SOURCES += screen_help.c +endif + if ENABLE_ARTIST_SCREEN ncmpc_SOURCES += screen_artist.c endif diff --git a/src/screen.c b/src/screen.c index 648d07a86..c333529fd 100644 --- a/src/screen.c +++ b/src/screen.c @@ -792,9 +792,11 @@ screen_cmd(mpdclient_t *c, command_t cmd) case CMD_SCREEN_FILE: screen_switch(&screen_browse, c); break; +#ifdef ENABLE_HELP_SCREEN case CMD_SCREEN_HELP: screen_switch(&screen_help, c); break; +#endif #ifdef ENABLE_SEARCH_SCREEN case CMD_SCREEN_SEARCH: screen_switch(&screen_search, c); diff --git a/src/screen_list.c b/src/screen_list.c index 31e8adaf1..39ec8e9f3 100644 --- a/src/screen_list.c +++ b/src/screen_list.c @@ -32,7 +32,9 @@ static const struct #ifdef ENABLE_ARTIST_SCREEN { "artist", &screen_artist }, #endif +#ifdef ENABLE_HELP_SCREEN { "help", &screen_help }, +#endif #ifdef ENABLE_SEARCH_SCREEN { "search", &screen_search }, #endif |