summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-10-26 12:19:39 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-10-26 12:19:39 +0000
commita900a29091deb5ac24abf70bed6292c9eb080fcf (patch)
tree4189c6df1f93c16e8d3a3a2bd5e1cc30855edc50 /apps
parentc2f4e03b9ecfe44e9aeefcdd2d23c308407ecb56 (diff)
downloadrockbox-a900a29091deb5ac24abf70bed6292c9eb080fcf.zip
rockbox-a900a29091deb5ac24abf70bed6292c9eb080fcf.tar.gz
rockbox-a900a29091deb5ac24abf70bed6292c9eb080fcf.tar.bz2
rockbox-a900a29091deb5ac24abf70bed6292c9eb080fcf.tar.xz
fix that disktidy plugin and shopper plugin is not usable when Show Icons setting is turned off.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28362 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/bitmap/list.c4
-rw-r--r--apps/gui/charcell/list.c3
-rw-r--r--apps/plugins/disktidy.c2
3 files changed, 3 insertions, 6 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
index 4323bb0..ec12ee5 100644
--- a/apps/gui/bitmap/list.c
+++ b/apps/gui/bitmap/list.c
@@ -331,7 +331,7 @@ void list_draw(struct screen *display, struct gui_synclist *list)
}
/* do the icon */
display->set_viewport(&list_icons);
- if (list->callback_get_item_icon && global_settings.show_icons)
+ if (list->callback_get_item_icon != NULL)
{
screen_put_icon_with_offset(display, show_cursor?1:0,
(line),show_cursor?ICON_PADDING:0,draw_offset,
@@ -468,7 +468,7 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list)
return ACTION_NONE;
/* x and y are relative to info_vp */
- if (global_settings.show_icons)
+ if (gui_list->callback_get_item_icon != NULL)
icon_width += get_icon_width(screen);
if (show_cursor)
icon_width += get_icon_width(screen);
diff --git a/apps/gui/charcell/list.c b/apps/gui/charcell/list.c
index 8eebfe7..a0ab028 100644
--- a/apps/gui/charcell/list.c
+++ b/apps/gui/charcell/list.c
@@ -51,8 +51,7 @@ void gui_synclist_scroll_stop(struct gui_synclist *lists)
void list_draw(struct screen *display, struct gui_synclist *gui_list)
{
int text_pos;
- bool draw_icons = (gui_list->callback_get_item_icon != NULL &&
- global_settings.show_icons);
+ bool draw_icons = (gui_list->callback_get_item_icon != NULL);
bool draw_cursor;
int i;
int lines;
diff --git a/apps/plugins/disktidy.c b/apps/plugins/disktidy.c
index 1e6c153..df0076f 100644
--- a/apps/plugins/disktidy.c
+++ b/apps/plugins/disktidy.c
@@ -496,7 +496,6 @@ enum tidy_return tidy_lcd_menu(void)
case 1:
{
- bool show_icons = rb->global_settings->show_icons;
struct simplelist_info list;
rb->simplelist_info_init(&list, "Files to Clean",
tidy_type_count, NULL);
@@ -504,7 +503,6 @@ enum tidy_return tidy_lcd_menu(void)
list.get_name = get_name;
list.action_callback = list_action_callback;
rb->simplelist_show_list(&list);
- rb->global_settings->show_icons = show_icons;
}
break;