From 3823486a5864796cd7fcba07521f4ca2ebab3885 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 7 Jun 2007 12:14:31 +0000 Subject: 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 --- apps/debug_menu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/debug_menu.c') diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 32ab46cbda..404d82c63e 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 { -- cgit v1.2.3