Code

screen_artist: Added the jump command to the artist screen.
authorPatrick Hallen <patrick.hallen@rwth-aachen.de>
Wed, 11 Feb 2009 19:30:27 +0000 (20:30 +0100)
committerPatrick Hallen <patrick.hallen@rwth-aachen.de>
Wed, 11 Feb 2009 19:30:27 +0000 (20:30 +0100)
src/screen_artist.c

index 3b14e6bd7a90b0db0b45154bed930e25909fba31..0d81874f96c35d476450e34c1376f8abfbf27ec1 100644 (file)
@@ -672,6 +672,22 @@ artist_cmd(mpdclient_t *c, command_t cmd)
                        /* handled by browser_cmd() */
                        break;
                }
+       case CMD_LIST_JUMP:
+               switch (mode) {
+               case LIST_ARTISTS:
+                       screen_jump(browser.lw, artist_lw_callback, artist_list);
+                       artist_repaint();
+                       return true;
+
+               case LIST_ALBUMS:
+                       screen_jump(browser.lw, artist_lw_callback, album_list);
+                       artist_repaint();
+                       return true;
+
+               case LIST_SONGS:
+                       /* handled by browser_cmd() */
+                       break;
+               }
 
                break;