aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_artist.c
diff options
context:
space:
mode:
authorAndreas Obergrusberger <tradiaz@yahoo.de>2006-11-11 20:11:32 +0000
committerAndreas Obergrusberger <tradiaz@yahoo.de>2006-11-11 20:11:32 +0000
commit7f611951dc9f46941c7db2daeb9f3d6f084d7c20 (patch)
tree9e10c57da8d63fadb76a72f984a3275c0cd0b9b6 /src/screen_artist.c
parentaee50deefe83ea3a79255cb64a252c58775f8a5b (diff)
downloadmpd-7f611951dc9f46941c7db2daeb9f3d6f084d7c20.tar.gz
mpd-7f611951dc9f46941c7db2daeb9f3d6f084d7c20.tar.xz
mpd-7f611951dc9f46941c7db2daeb9f3d6f084d7c20.zip
Daniel rocked the house
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@5041 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/screen_artist.c')
-rw-r--r--src/screen_artist.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/screen_artist.c b/src/screen_artist.c
index 085c6aac1..9f98fb631 100644
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
@@ -369,6 +369,40 @@ artist_cmd(screen_t *screen, mpdclient_t *c, command_t cmd)
}
return 1;
+
+ /* FIXME? CMD_GO_* handling duplicates code from CMD_PLAY */
+
+ case CMD_GO_PARENT_DIRECTORY:
+ switch(mode)
+ {
+ case LIST_ALBUMS:
+ update_metalist(c, NULL, NULL);
+ list_window_reset(lw);
+ /* restore previous list window state */
+ list_window_pop_state(lw_state,lw);
+ break;
+ case LIST_SONGS:
+ update_metalist(c, g_strdup(artist), NULL);
+ list_window_reset(lw);
+ /* restore previous list window state */
+ list_window_pop_state(lw_state,lw);
+ break;
+ }
+ break;
+
+ case CMD_GO_ROOT_DIRECTORY:
+ switch(mode)
+ {
+ case LIST_ALBUMS:
+ case LIST_SONGS:
+ update_metalist(c, NULL, NULL);
+ list_window_reset(lw);
+ /* restore first list window state (pop while returning true) */
+ while(list_window_pop_state(lw_state,lw));
+ break;
+ }
+ break;
+
case CMD_SELECT:
switch(mode)
{