diff options
author | Max Kellermann <max@duempel.org> | 2008-11-25 21:14:07 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-25 21:14:07 +0100 |
commit | 35e800e2f27bb863062f66ceaef89af5bb33718a (patch) | |
tree | cb5c81ee8094c85d1ec491e9fa51dcf118814c5d | |
parent | a992f12521da4f9024f8022ea6b8aa3794ea5a99 (diff) | |
download | mpd-35e800e2f27bb863062f66ceaef89af5bb33718a.tar.gz mpd-35e800e2f27bb863062f66ceaef89af5bb33718a.tar.xz mpd-35e800e2f27bb863062f66ceaef89af5bb33718a.zip |
screen_artist: fixes for the ncmpc-mini build
Disable the highlighting code which has slipped out of the NCMPC_MINI
checks.
Diffstat (limited to '')
-rw-r--r-- | src/screen_artist.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/screen_artist.c b/src/screen_artist.c index 2c228834e..7180c38ed 100644 --- a/src/screen_artist.c +++ b/src/screen_artist.c @@ -109,6 +109,7 @@ artist_repaint_if_active(void) artist_repaint(); } +#ifndef NCMPC_MINI /* the playlist have been updated -> fix highlights */ static void playlist_changed_callback(mpdclient_t *c, int event, gpointer data) @@ -117,6 +118,7 @@ playlist_changed_callback(mpdclient_t *c, int event, gpointer data) artist_repaint_if_active(); } +#endif static GPtrArray * g_list_to_ptr_array(GList *in) @@ -147,7 +149,7 @@ string_array_free(GPtrArray *array) } static void -free_lists(struct mpdclient *c) +free_lists(G_GNUC_UNUSED struct mpdclient *c) { if (artist_list != NULL) { string_array_free(artist_list); @@ -160,8 +162,10 @@ free_lists(struct mpdclient *c) } if (browser.filelist) { +#ifndef NCMPC_MINI if (c != NULL) mpdclient_remove_playlist_callback(c, playlist_changed_callback); +#endif filelist_free(browser.filelist); browser.filelist = NULL; } @@ -228,9 +232,11 @@ load_song_list(struct mpdclient *c) /* add a dummy entry for ".." */ filelist_prepend(browser.filelist, NULL); +#ifndef NCMPC_MINI /* install playlist callback and fix highlights */ sync_highlights(c, browser.filelist); mpdclient_install_playlist_callback(c, playlist_changed_callback); +#endif } static void |