diff options
author | Jeffrey Goode <jeffg7@gmail.com> | 2010-05-07 03:21:12 +0000 |
---|---|---|
committer | Jeffrey Goode <jeffg7@gmail.com> | 2010-05-07 03:21:12 +0000 |
commit | 16e0c5730d1373848a30374e5bb5d1d230626b50 (patch) | |
tree | 66e25fd81700266a65ca649c0e7b7e3ca27c6e67 /apps/onplay.c | |
parent | affea5fe9e54b32ecd9f30ed02dd093d7aaa34b0 (diff) | |
download | rockbox-16e0c5730d1373848a30374e5bb5d1d230626b50.tar.gz rockbox-16e0c5730d1373848a30374e5bb5d1d230626b50.zip |
Hotkey menu items have their own icon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25866 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/onplay.c')
-rw-r--r-- | apps/onplay.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index 009b375871..82a8bddae7 100644 --- a/apps/onplay.c +++ b/apps/onplay.c | |||
@@ -270,7 +270,8 @@ static int treeplaylist_callback(int action, | |||
270 | const struct menu_item_ex *this_item); | 270 | const struct menu_item_ex *this_item); |
271 | 271 | ||
272 | /* insert items */ | 272 | /* insert items */ |
273 | MENUITEM_FUNCTION(i_pl_item, MENU_FUNC_USEPARAM, ID2P(LANG_INSERT), | 273 | MENUITEM_FUNCTION(i_pl_item, MENU_FUNC_USEPARAM | MENU_FUNC_HOTKEYABLE, |
274 | ID2P(LANG_INSERT), | ||
274 | playlist_insert_func, (intptr_t*)PLAYLIST_INSERT, | 275 | playlist_insert_func, (intptr_t*)PLAYLIST_INSERT, |
275 | NULL, Icon_Playlist); | 276 | NULL, Icon_Playlist); |
276 | MENUITEM_FUNCTION(i_first_pl_item, MENU_FUNC_USEPARAM, ID2P(LANG_INSERT_FIRST), | 277 | MENUITEM_FUNCTION(i_first_pl_item, MENU_FUNC_USEPARAM, ID2P(LANG_INSERT_FIRST), |
@@ -959,10 +960,12 @@ MENUITEM_FUNCTION(view_cue_item, 0, ID2P(LANG_BROWSE_CUESHEET), | |||
959 | view_cue, NULL, view_cue_item_callback, Icon_NOICON); | 960 | view_cue, NULL, view_cue_item_callback, Icon_NOICON); |
960 | 961 | ||
961 | /* CONTEXT_WPS items */ | 962 | /* CONTEXT_WPS items */ |
962 | MENUITEM_FUNCTION(browse_id3_item, 0, ID2P(LANG_MENU_SHOW_ID3_INFO), | 963 | MENUITEM_FUNCTION(browse_id3_item, MENU_FUNC_HOTKEYABLE, |
964 | ID2P(LANG_MENU_SHOW_ID3_INFO), | ||
963 | browse_id3, NULL, NULL, Icon_NOICON); | 965 | browse_id3, NULL, NULL, Icon_NOICON); |
964 | #ifdef HAVE_PITCHSCREEN | 966 | #ifdef HAVE_PITCHSCREEN |
965 | MENUITEM_FUNCTION(pitch_screen_item, 0, ID2P(LANG_PITCH), | 967 | MENUITEM_FUNCTION(pitch_screen_item, MENU_FUNC_HOTKEYABLE, |
968 | ID2P(LANG_PITCH), | ||
966 | gui_syncpitchscreen_run, NULL, NULL, Icon_Audio); | 969 | gui_syncpitchscreen_run, NULL, NULL, Icon_Audio); |
967 | #endif | 970 | #endif |
968 | 971 | ||
@@ -976,9 +979,9 @@ MENUITEM_FUNCTION(clipboard_copy_item, 0, ID2P(LANG_COPY), | |||
976 | clipboard_copy, NULL, clipboard_callback, Icon_NOICON); | 979 | clipboard_copy, NULL, clipboard_callback, Icon_NOICON); |
977 | MENUITEM_FUNCTION(clipboard_paste_item, 0, ID2P(LANG_PASTE), | 980 | MENUITEM_FUNCTION(clipboard_paste_item, 0, ID2P(LANG_PASTE), |
978 | clipboard_paste, NULL, clipboard_callback, Icon_NOICON); | 981 | clipboard_paste, NULL, clipboard_callback, Icon_NOICON); |
979 | MENUITEM_FUNCTION(delete_file_item, 0, ID2P(LANG_DELETE), | 982 | MENUITEM_FUNCTION(delete_file_item, MENU_FUNC_HOTKEYABLE, ID2P(LANG_DELETE), |
980 | delete_file_dir, NULL, clipboard_callback, Icon_NOICON); | 983 | delete_file_dir, NULL, clipboard_callback, Icon_NOICON); |
981 | MENUITEM_FUNCTION(delete_dir_item, 0, ID2P(LANG_DELETE_DIR), | 984 | MENUITEM_FUNCTION(delete_dir_item, MENU_FUNC_HOTKEYABLE, ID2P(LANG_DELETE_DIR), |
982 | delete_file_dir, NULL, clipboard_callback, Icon_NOICON); | 985 | delete_file_dir, NULL, clipboard_callback, Icon_NOICON); |
983 | MENUITEM_FUNCTION(create_dir_item, 0, ID2P(LANG_CREATE_DIR), | 986 | MENUITEM_FUNCTION(create_dir_item, 0, ID2P(LANG_CREATE_DIR), |
984 | create_dir, NULL, clipboard_callback, Icon_NOICON); | 987 | create_dir, NULL, clipboard_callback, Icon_NOICON); |
@@ -1000,7 +1003,8 @@ static bool onplay_load_plugin(void *param) | |||
1000 | return false; | 1003 | return false; |
1001 | } | 1004 | } |
1002 | 1005 | ||
1003 | MENUITEM_FUNCTION(list_viewers_item, 0, ID2P(LANG_ONPLAY_OPEN_WITH), | 1006 | MENUITEM_FUNCTION(list_viewers_item, MENU_FUNC_HOTKEYABLE, |
1007 | ID2P(LANG_ONPLAY_OPEN_WITH), | ||
1004 | list_viewers, NULL, clipboard_callback, Icon_NOICON); | 1008 | list_viewers, NULL, clipboard_callback, Icon_NOICON); |
1005 | MENUITEM_FUNCTION(properties_item, MENU_FUNC_USEPARAM, ID2P(LANG_PROPERTIES), | 1009 | MENUITEM_FUNCTION(properties_item, MENU_FUNC_USEPARAM, ID2P(LANG_PROPERTIES), |
1006 | onplay_load_plugin, (void *)"properties", | 1010 | onplay_load_plugin, (void *)"properties", |