summaryrefslogtreecommitdiff
path: root/apps/onplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index ab507f08ac..a259e88c58 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -211,6 +211,13 @@ static void playing_time(void)
211 plugin_load(PLUGIN_APPS_DIR"/playing_time.rock", NULL); 211 plugin_load(PLUGIN_APPS_DIR"/playing_time.rock", NULL);
212} 212}
213 213
214#ifdef HAVE_ALBUMART
215static void view_album_art(void)
216{
217 plugin_load(VIEWERS_DIR"/imageviewer.rock", NULL);
218}
219#endif
220
214MENUITEM_FUNCTION(wps_view_cur_playlist_item, 0, ID2P(LANG_VIEW_DYNAMIC_PLAYLIST), 221MENUITEM_FUNCTION(wps_view_cur_playlist_item, 0, ID2P(LANG_VIEW_DYNAMIC_PLAYLIST),
215 wps_view_cur_playlist, NULL, Icon_NOICON); 222 wps_view_cur_playlist, NULL, Icon_NOICON);
216MENUITEM_FUNCTION(search_playlist_item, 0, ID2P(LANG_SEARCH_IN_PLAYLIST), 223MENUITEM_FUNCTION(search_playlist_item, 0, ID2P(LANG_SEARCH_IN_PLAYLIST),
@@ -705,6 +712,10 @@ MENUITEM_FUNCTION(browse_id3_item, MENU_FUNC_CHECK_RETVAL, ID2P(LANG_MENU_SHOW_I
705MENUITEM_FUNCTION(pitch_screen_item, 0, ID2P(LANG_PITCH), 712MENUITEM_FUNCTION(pitch_screen_item, 0, ID2P(LANG_PITCH),
706 gui_syncpitchscreen_run, NULL, Icon_Audio); 713 gui_syncpitchscreen_run, NULL, Icon_Audio);
707#endif 714#endif
715#ifdef HAVE_ALBUMART
716MENUITEM_FUNCTION(view_album_art_item, 0, ID2P(LANG_VIEW_ALBUMART),
717 view_album_art, NULL, Icon_NOICON);
718#endif
708 719
709static int clipboard_delete_selected_fileobject(void) 720static int clipboard_delete_selected_fileobject(void)
710{ 721{
@@ -1028,6 +1039,9 @@ MAKE_ONPLAYMENU( wps_onplay_menu, ID2P(LANG_ONPLAY_MENU_TITLE),
1028#ifdef HAVE_PITCHCONTROL 1039#ifdef HAVE_PITCHCONTROL
1029 &pitch_screen_item, 1040 &pitch_screen_item,
1030#endif 1041#endif
1042#ifdef HAVE_ALBUMART
1043 &view_album_art_item,
1044#endif
1031 ); 1045 );
1032 1046
1033MENUITEM_FUNCTION(view_playlist_item, 0, ID2P(LANG_VIEW), 1047MENUITEM_FUNCTION(view_playlist_item, 0, ID2P(LANG_VIEW),