diff options
author | Max Kellermann <max@duempel.org> | 2008-09-18 23:35:11 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-18 23:35:11 +0200 |
commit | cde030e211b3d9ea517403b5d5547b6d374fc470 (patch) | |
tree | a8b7c87bf74807553b98506a0e72c247dbf3b6c7 /src/screen_artist.c | |
parent | 4f7926a989e2428a4701de3410e80997867ff63b (diff) | |
download | mpd-cde030e211b3d9ea517403b5d5547b6d374fc470.tar.gz mpd-cde030e211b3d9ea517403b5d5547b6d374fc470.tar.xz mpd-cde030e211b3d9ea517403b5d5547b6d374fc470.zip |
screen_browser: moved code to screen_browser.c
Isolate the generic browser code from the directory browser.
Diffstat (limited to 'src/screen_artist.c')
-rw-r--r-- | src/screen_artist.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/screen_artist.c b/src/screen_artist.c index 8e9732b8b..a83900395 100644 --- a/src/screen_artist.c +++ b/src/screen_artist.c @@ -234,7 +234,7 @@ paint(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c) browser.lw->clear = 1; if (browser.filelist) { - list_window_paint(browser.lw, browse_lw_callback, + list_window_paint(browser.lw, browser_lw_callback, browser.filelist); browser.filelist->updated = FALSE; } else if (metalist) { @@ -251,7 +251,7 @@ static void update(screen_t *screen, mpdclient_t *c) { if (browser.filelist && !browser.filelist->updated) - list_window_paint(browser.lw, browse_lw_callback, + list_window_paint(browser.lw, browser_lw_callback, browser.filelist); else if (metalist) list_window_paint(browser.lw, artist_lw_callback, metalist); @@ -348,8 +348,7 @@ artist_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) list_window_pop_state(browser.lw_state, browser.lw); } else - browse_handle_enter(screen, c, browser.lw, - browser.filelist); + browser_handle_enter(&browser, c); break; } return 1; @@ -415,8 +414,7 @@ artist_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) break; case LIST_SONGS: - if (browse_handle_select(screen, c, browser.lw, - browser.filelist) == 0) + if (browser_handle_select(&browser, c) == 0) /* continue and select next item... */ cmd = CMD_LIST_NEXT; break; @@ -439,7 +437,7 @@ artist_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) if (browser.filelist) return screen_find(screen, browser.lw, browser.filelist->length, - cmd, browse_lw_callback, + cmd, browser_lw_callback, browser.filelist); else if (metalist) return screen_find(screen, @@ -449,8 +447,7 @@ artist_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) return 1; case CMD_MOUSE_EVENT: - return browse_handle_mouse_event(screen, c,browser.lw, - browser.filelist); + return browser_handle_mouse_event(&browser, c); default: break; |