summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f3849aa)
raw | patch | inline | side by side (parent: f3849aa)
author | Max Kellermann <max@duempel.org> | |
Tue, 18 Nov 2008 23:06:12 +0000 (00:06 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Tue, 18 Nov 2008 23:06:12 +0000 (00:06 +0100) |
src/command.c | patch | blob | history | |
src/screen_browser.c | patch | blob | history | |
src/screen_play.c | patch | blob | history |
diff --git a/src/command.c b/src/command.c
index 9dae30be6da716bfe509a05ce90c6a808bfe987d..107167376e1db2162cbbc4c063f7dbb268615018 100644 (file)
--- a/src/command.c
+++ b/src/command.c
{ { '"', 0, 0 }, 0, CMD_GO_PARENT_DIRECTORY, "go-parent-directory",
N_("Go to parent directory") },
+#ifdef ENABLE_SONG_SCREEN
{ { 'i', 0, 0 }, 0, CMD_VIEW, "view",
N_("View the song") },
+#endif
{ { 'G', 0, 0 }, 0, CMD_LOCATE, "locate",
N_("Locate song in browser") },
diff --git a/src/screen_browser.c b/src/screen_browser.c
index d0a591ec49002824267b22034cf881cad70d4701..f8493c3ebfd0acf595b031853b4e4207f68de522 100644 (file)
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
return true;
#endif
+#ifdef ENABLE_SONG_SCREEN
case CMD_VIEW:
entry = browser_get_selected(browser);
if (entry == NULL || entry->entity == NULL ||
screen_song_switch(c, entry->entity->info.song);
return true;
+#endif
case CMD_LOCATE:
entry = browser_get_selected(browser);
diff --git a/src/screen_play.c b/src/screen_play.c
index 13b5e742b0ea389205ee702b2cff3f9b25237952..6cc7277ab73737893b1eda531fb91158ef64d9c7 100644 (file)
--- a/src/screen_play.c
+++ b/src/screen_play.c
return handle_mouse_event(c);
#endif
+#ifdef ENABLE_SONG_SCREEN
case CMD_VIEW:
if (lw->selected < playlist_length(&c->playlist)) {
screen_song_switch(c, playlist_get(&c->playlist, lw->selected));
}
break;
+#endif
case CMD_LOCATE:
if (lw->selected < playlist_length(&c->playlist)) {