summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a992f12)
raw | patch | inline | side by side (parent: a992f12)
author | Max Kellermann <max@duempel.org> | |
Tue, 25 Nov 2008 20:14:07 +0000 (21:14 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Tue, 25 Nov 2008 20:14:07 +0000 (21:14 +0100) |
Disable the highlighting code which has slipped out of the NCMPC_MINI
checks.
checks.
src/screen_artist.c | patch | blob | history |
diff --git a/src/screen_artist.c b/src/screen_artist.c
index 2c228834e4227dbcbd0fdf99c94d4c5774dc05ce..7180c38edd39f2d8fee3b6e7dc47c38a4cc56d0f 100644 (file)
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
artist_repaint();
}
+#ifndef NCMPC_MINI
/* the playlist have been updated -> fix highlights */
static void
playlist_changed_callback(mpdclient_t *c, int event, gpointer data)
artist_repaint_if_active();
}
+#endif
static GPtrArray *
g_list_to_ptr_array(GList *in)
}
static void
-free_lists(struct mpdclient *c)
+free_lists(G_GNUC_UNUSED struct mpdclient *c)
{
if (artist_list != NULL) {
string_array_free(artist_list);
}
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;
}
/* 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