diff options
author | Max Kellermann <max@duempel.org> | 2008-11-07 13:27:31 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-07 13:27:31 +0100 |
commit | 54674384020f5d8019ca71f6c283d18ba32d5171 (patch) | |
tree | 8684aa7a9ccd18c808ad265e7c7bb9e283833cdc /src/screen_file.c | |
parent | 9e8806dadee58efe36151a6bca22d65487ed02ee (diff) | |
download | mpd-54674384020f5d8019ca71f6c283d18ba32d5171.tar.gz mpd-54674384020f5d8019ca71f6c283d18ba32d5171.tar.xz mpd-54674384020f5d8019ca71f6c283d18ba32d5171.zip |
disable more features with --enable-mini
Disable lots of smaller features which don't have a separate configure
option:
- xterm title
- screen list
- horizontal scrolling
- MPD version number check
- key binding checks
- character set conversion
- bitrate display
- highlighting in the file browser
- completion / history
Diffstat (limited to '')
-rw-r--r-- | src/screen_file.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/screen_file.c b/src/screen_file.c index b14b3b104..5a81e8fb8 100644 --- a/src/screen_file.c +++ b/src/screen_file.c @@ -58,12 +58,15 @@ file_changed_callback(mpdclient_t *c, mpd_unused int event, mpd_unused gpointer data) { browser.filelist = mpdclient_filelist_update(c, browser.filelist); +#ifndef NCMPC_MINI sync_highlights(c, browser.filelist); +#endif list_window_check_selected(browser.lw, filelist_length(browser.filelist)); file_repaint_if_active(); } +#ifndef NCMPC_MINI /* the playlist have been updated -> fix highlights */ static void playlist_changed_callback(mpdclient_t *c, int event, gpointer data) @@ -72,6 +75,7 @@ playlist_changed_callback(mpdclient_t *c, int event, gpointer data) file_repaint_if_active(); } +#endif static int handle_save(mpdclient_t *c) @@ -162,7 +166,9 @@ browse_open(mpd_unused mpdclient_t *c) { if (browser.filelist == NULL) { browser.filelist = mpdclient_filelist_get(c, ""); +#ifndef NCMPC_MINI mpdclient_install_playlist_callback(c, playlist_changed_callback); +#endif mpdclient_install_browse_callback(c, file_changed_callback); } } @@ -216,7 +222,9 @@ browse_cmd(mpdclient_t *c, command_t cmd) break; case CMD_SCREEN_UPDATE: browser.filelist = mpdclient_filelist_update(c, browser.filelist); +#ifndef NCMPC_MINI sync_highlights(c, browser.filelist); +#endif list_window_check_selected(browser.lw, filelist_length(browser.filelist)); file_repaint(); |