diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-06-07 12:14:31 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-06-07 12:14:31 +0000 |
| commit | 3823486a5864796cd7fcba07521f4ca2ebab3885 (patch) | |
| tree | ab1564f9f1e7af51f320a6a17766f57788f662c3 /apps/debug_menu.c | |
| parent | a1f0a83a012f01cdb39025519c95df664399deed (diff) | |
| download | rockbox-3823486a5864796cd7fcba07521f4ca2ebab3885.zip rockbox-3823486a5864796cd7fcba07521f4ca2ebab3885.tar.gz rockbox-3823486a5864796cd7fcba07521f4ca2ebab3885.tar.bz2 rockbox-3823486a5864796cd7fcba07521f4ca2ebab3885.tar.xz | |
Add a mode the lists which doesnt show the selection marker.
Useful for the debug menus where users shouldn't think pressing select would do anything.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13588 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 32ab46c..404d82c 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -88,6 +88,7 @@ #endif #include "hwcompat.h" +static char* dbg_menu_getname(int item, void * data, char *buffer); static bool dbg_list(char *title, int count, int selection_size, int (*action_callback)(int btn, struct gui_synclist *lists), char* (*dbg_getname)(int item, void * data, char *buffer)) @@ -99,6 +100,8 @@ static bool dbg_list(char *title, int count, int selection_size, gui_synclist_set_title(&lists, title, NOICON); gui_synclist_set_icon_callback(&lists, NULL); gui_synclist_set_nb_items(&lists, count*selection_size); + if (dbg_getname != dbg_menu_getname) + gui_synclist_hide_selection_marker(&lists, true); action_signalscreenchange(); gui_synclist_draw(&lists); while(1) @@ -659,7 +662,7 @@ static char* dbg_partitions_getname(int selected_item, void * data, char *buffer struct partinfo* p = disk_partinfo(partition); if (selected_item%2) { - snprintf(buffer, MAX_PATH, "T:%x %ld MB", p->type, p->size / 2048); + snprintf(buffer, MAX_PATH, " T:%x %ld MB", p->type, p->size / 2048); } else { |