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_browser.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 '')
-rw-r--r-- | src/screen_browser.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/screen_browser.c b/src/screen_browser.c index be29a341a..d0a591ec4 100644 --- a/src/screen_browser.c +++ b/src/screen_browser.c @@ -529,6 +529,15 @@ browser_cmd(struct screen_browser *browser, return true; #endif + case CMD_VIEW: + entry = browser_get_selected(browser); + if (entry == NULL || entry->entity == NULL || + entry->entity->type != MPD_INFO_ENTITY_TYPE_SONG) + return false; + + screen_song_switch(c, entry->entity->info.song); + return true; + case CMD_LOCATE: entry = browser_get_selected(browser); if (entry == NULL || entry->entity == NULL || |