summaryrefslogtreecommitdiff
path: root/apps/keymaps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-02-27 09:06:30 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-02-27 09:06:30 +0000
commit2816dc9c13f204234b613db5199d2c787a11f0d8 (patch)
tree841dfbbccd0b621de0b5257c1ecf15d5aa8171a1 /apps/keymaps
parent93712c97eef684c75b542ca1a30c4e9d1f3fc3fc (diff)
Convert the radio menus to the new system.
Change the way the presets are done (in code). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12500 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/keymaps')
-rw-r--r--apps/keymaps/keymap-ondio.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/keymaps/keymap-ondio.c b/apps/keymaps/keymap-ondio.c
index 4274afc29e..401742b363 100644
--- a/apps/keymaps/keymap-ondio.c
+++ b/apps/keymaps/keymap-ondio.c
@@ -159,7 +159,7 @@ static const struct button_mapping button_context_keyboard[] = {
LAST_ITEM_IN_LIST
}; /* button_context_keyboard */
-
+#if CONFIG_TUNER
static const struct button_mapping button_context_radio[] = {
{ ACTION_FM_MENU, BUTTON_MENU | BUTTON_REPEAT, BUTTON_NONE },
{ ACTION_FM_RECORD_DBLPRE, BUTTON_MENU, BUTTON_NONE},
@@ -176,7 +176,7 @@ static const struct button_mapping button_context_radio[] = {
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS)
};
-
+#endif
const struct button_mapping* get_context_mapping( int context )
{
switch( context )
@@ -207,9 +207,10 @@ const struct button_mapping* get_context_mapping( int context )
return button_context_recscreen;
case CONTEXT_KEYBOARD:
return button_context_keyboard;
+#if CONFIG_TUNER
case CONTEXT_FM:
return button_context_radio;
-
+#endif
case CONTEXT_LIST:
case CONTEXT_MAINMENU:
default: