summaryrefslogtreecommitdiffstats
path: root/apps/menu.c
diff options
context:
space:
mode:
authorJeffrey Goode <jeffg7@gmail.com>2010-05-07 03:21:12 +0000
committerJeffrey Goode <jeffg7@gmail.com>2010-05-07 03:21:12 +0000
commit16e0c5730d1373848a30374e5bb5d1d230626b50 (patch)
tree66e25fd81700266a65ca649c0e7b7e3ca27c6e67 /apps/menu.c
parentaffea5fe9e54b32ecd9f30ed02dd093d7aaa34b0 (diff)
downloadrockbox-16e0c5730d1373848a30374e5bb5d1d230626b50.tar.gz
rockbox-16e0c5730d1373848a30374e5bb5d1d230626b50.tar.bz2
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/menu.c')
-rw-r--r--apps/menu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/menu.c b/apps/menu.c
index b640905c0f..a0af666cbb 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -153,6 +153,11 @@ static enum themable_icons menu_get_icon(int selected_item, void * data)
else if (menu->flags&MENU_DYNAMIC_DESC)
menu_icon = menu->menu_get_name_and_icon->icon_id;
+#ifdef HAVE_HOTKEY
+ if (hotkey_settable_menu && (menu->flags&MENU_FUNC_HOTKEYABLE))
+ menu_icon = Icon_Hotkey;
+#endif
+
if (menu_icon == Icon_NOICON)
{
switch (menu->flags&MENU_TYPE_MASK)