diff options
Diffstat (limited to 'apps/onplay.c')
-rw-r--r-- | apps/onplay.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index 556da1cde2..e27a7a35a9 100644 --- a/apps/onplay.c +++ b/apps/onplay.c | |||
@@ -929,6 +929,8 @@ static int ratingitem_callback(int action,const struct menu_item_ex *this_item) | |||
929 | MENUITEM_FUNCTION(rating_item, 0, ID2P(LANG_MENU_SET_RATING), | 929 | MENUITEM_FUNCTION(rating_item, 0, ID2P(LANG_MENU_SET_RATING), |
930 | set_rating_inline, NULL, | 930 | set_rating_inline, NULL, |
931 | ratingitem_callback, Icon_Questionmark); | 931 | ratingitem_callback, Icon_Questionmark); |
932 | MENUITEM_RETURNVALUE(pictureflow_item, ID2P(LANG_ONPLAY_PICTUREFLOW), | ||
933 | GO_TO_PICTUREFLOW, NULL, Icon_NOICON); | ||
932 | #endif | 934 | #endif |
933 | 935 | ||
934 | static bool view_cue(void) | 936 | static bool view_cue(void) |
@@ -1131,7 +1133,11 @@ MAKE_ONPLAYMENU( wps_onplay_menu, ID2P(LANG_ONPLAY_MENU_TITLE), | |||
1131 | #ifdef HAVE_TAGCACHE | 1133 | #ifdef HAVE_TAGCACHE |
1132 | &rating_item, | 1134 | &rating_item, |
1133 | #endif | 1135 | #endif |
1134 | &bookmark_menu, &browse_id3_item, &list_viewers_item, | 1136 | &bookmark_menu, |
1137 | #ifdef HAVE_TAGCACHE | ||
1138 | &pictureflow_item, | ||
1139 | #endif | ||
1140 | &browse_id3_item, &list_viewers_item, | ||
1135 | &delete_file_item, &view_cue_item, | 1141 | &delete_file_item, &view_cue_item, |
1136 | #ifdef HAVE_PITCHSCREEN | 1142 | #ifdef HAVE_PITCHSCREEN |
1137 | &pitch_screen_item, | 1143 | &pitch_screen_item, |
@@ -1244,6 +1250,11 @@ static struct hotkey_assignment hotkey_items[] = { | |||
1244 | { HOTKEY_INSERT_SHUFFLED, LANG_INSERT_SHUFFLED, | 1250 | { HOTKEY_INSERT_SHUFFLED, LANG_INSERT_SHUFFLED, |
1245 | HOTKEY_FUNC(playlist_insert_shuffled, NULL), | 1251 | HOTKEY_FUNC(playlist_insert_shuffled, NULL), |
1246 | ONPLAY_OK }, | 1252 | ONPLAY_OK }, |
1253 | #ifdef HAVE_TAGCACHE | ||
1254 | { HOTKEY_PICTUREFLOW, LANG_ONPLAY_PICTUREFLOW, | ||
1255 | HOTKEY_FUNC(NULL, NULL), | ||
1256 | ONPLAY_PICTUREFLOW }, | ||
1257 | #endif | ||
1247 | }; | 1258 | }; |
1248 | 1259 | ||
1249 | /* Return the language ID for this action */ | 1260 | /* Return the language ID for this action */ |
@@ -1316,6 +1327,7 @@ int onplay(char* file, int attr, int from, bool hotkey) | |||
1316 | else | 1327 | else |
1317 | menu = &tree_onplay_menu; | 1328 | menu = &tree_onplay_menu; |
1318 | menu_selection = do_menu(menu, NULL, NULL, false); | 1329 | menu_selection = do_menu(menu, NULL, NULL, false); |
1330 | |||
1319 | switch (menu_selection) | 1331 | switch (menu_selection) |
1320 | { | 1332 | { |
1321 | case GO_TO_WPS: | 1333 | case GO_TO_WPS: |
@@ -1325,6 +1337,10 @@ int onplay(char* file, int attr, int from, bool hotkey) | |||
1325 | return ONPLAY_MAINMENU; | 1337 | return ONPLAY_MAINMENU; |
1326 | case GO_TO_PLAYLIST_VIEWER: | 1338 | case GO_TO_PLAYLIST_VIEWER: |
1327 | return ONPLAY_PLAYLIST; | 1339 | return ONPLAY_PLAYLIST; |
1340 | #ifdef HAVE_TAGCACHE | ||
1341 | case GO_TO_PICTUREFLOW: | ||
1342 | return ONPLAY_PICTUREFLOW; | ||
1343 | #endif | ||
1328 | default: | 1344 | default: |
1329 | return onplay_result; | 1345 | return onplay_result; |
1330 | } | 1346 | } |