diff options
author | Max Kellermann <max@duempel.org> | 2008-10-02 15:20:19 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-02 15:20:19 +0200 |
commit | b1a8ff5269e42088b1530ccacb52a55b60754578 (patch) | |
tree | fcac2d8606a6cd2d456160c5d6bcbae1ed8dd6de /src/screen_play.c | |
parent | a220d744b2c2ba89c9037caae055247953b72ac9 (diff) | |
download | mpd-b1a8ff5269e42088b1530ccacb52a55b60754578.tar.gz mpd-b1a8ff5269e42088b1530ccacb52a55b60754578.tar.xz mpd-b1a8ff5269e42088b1530ccacb52a55b60754578.zip |
screen_lyrics: add screen_lyrics_switch()
screen_lyrics_switch() opens the lyrics screen and displays the lyrics
of the specified song. This way, the user may view the lyrics of any
song in the database browser.
Diffstat (limited to '')
-rw-r--r-- | src/screen_play.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/screen_play.c b/src/screen_play.c index 1bc2034b8..67de5fa3e 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -528,6 +528,17 @@ play_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) case CMD_MOUSE_EVENT: return handle_mouse_event(screen,c); + +#ifdef ENABLE_LYRICS_SCREEN + case CMD_SCREEN_LYRICS: + if (lw->selected < playlist_length(&c->playlist)) { + screen_lyrics_switch(c, playlist_get(&c->playlist, lw->selected)); + return 1; + } + + break; +#endif + default: break; } |