diff options
author | Max Kellermann <max@duempel.org> | 2008-09-18 23:35:12 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-18 23:35:12 +0200 |
commit | 92cf0efffffeb95fbefc57505d778e6fdbd772d4 (patch) | |
tree | 153b81b6b0903d1a32a00ab6d4d71816e49b9924 /src/screen_file.c | |
parent | cde030e211b3d9ea517403b5d5547b6d374fc470 (diff) | |
download | mpd-92cf0efffffeb95fbefc57505d778e6fdbd772d4.tar.gz mpd-92cf0efffffeb95fbefc57505d778e6fdbd772d4.tar.xz mpd-92cf0efffffeb95fbefc57505d778e6fdbd772d4.zip |
screen_browser: moved code to browser_playlist_changed()
Merge code from all 3 browser screens into one generic browser
function.
Diffstat (limited to 'src/screen_file.c')
-rw-r--r-- | src/screen_file.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/screen_file.c b/src/screen_file.c index 801c61f9f..ea20f9506 100644 --- a/src/screen_file.c +++ b/src/screen_file.c @@ -53,23 +53,7 @@ file_changed_callback(mpdclient_t *c, mpd_unused int event, static void playlist_changed_callback(mpdclient_t *c, int event, gpointer data) { - D("screen_file.c> playlist_callback() [%d]\n", event); - switch(event) { - case PLAYLIST_EVENT_CLEAR: - clear_highlights(browser.filelist); - break; - case PLAYLIST_EVENT_ADD: - set_highlight(browser.filelist, (mpd_Song *) data, 1); - break; - case PLAYLIST_EVENT_DELETE: - set_highlight(browser.filelist, (mpd_Song *) data, 0); - break; - case PLAYLIST_EVENT_MOVE: - break; - default: - sync_highlights(c, browser.filelist); - break; - } + browser_playlist_changed(&browser, c, event, data); } static int |