diff options
author | Max Kellermann <max@duempel.org> | 2008-11-18 23:58:28 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-18 23:58:28 +0100 |
commit | f3849aa2b3eb49ca6a903e6627f97540c1a383f1 (patch) | |
tree | fd264cfe8ca66ae006983bd3992031f374709048 /src/screen_play.c | |
parent | 77b6145e75c6e1641002dd9675bcf3b5439c3718 (diff) | |
download | mpd-f3849aa2b3eb49ca6a903e6627f97540c1a383f1.tar.gz mpd-f3849aa2b3eb49ca6a903e6627f97540c1a383f1.tar.xz mpd-f3849aa2b3eb49ca6a903e6627f97540c1a383f1.zip |
screen_song: new screen which views song information
This new screen views all information available on a song: its
location, file name, and tags.
Diffstat (limited to 'src/screen_play.c')
-rw-r--r-- | src/screen_play.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/screen_play.c b/src/screen_play.c index 4b50f7459..13b5e742b 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -554,6 +554,14 @@ play_cmd(mpdclient_t *c, command_t cmd) return handle_mouse_event(c); #endif + case CMD_VIEW: + if (lw->selected < playlist_length(&c->playlist)) { + screen_song_switch(c, playlist_get(&c->playlist, lw->selected)); + return true; + } + + break; + case CMD_LOCATE: if (lw->selected < playlist_length(&c->playlist)) { screen_file_goto_song(c, playlist_get(&c->playlist, lw->selected)); |