summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2009-10-11 09:09:20 +0000
committerNils Wallménius <nils@rockbox.org>2009-10-11 09:09:20 +0000
commitaa84a99caf7abd4c1623e02d13f99efb1cd5895d (patch)
tree053c90ea1d114e7f3cbb9f0cc4a42587db41a5f4
parent46943ad40c835999c24b345e4b19e37161f078b6 (diff)
downloadrockbox-aa84a99caf7abd4c1623e02d13f99efb1cd5895d.tar.gz
rockbox-aa84a99caf7abd4c1623e02d13f99efb1cd5895d.zip
Const correctness
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23093 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/list.c2
-rw-r--r--apps/gui/list.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 2c7b7c9405..ccd8337c5a 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -418,7 +418,7 @@ void gui_list_screen_scroll_out_of_view(bool enable)
418 * both the title and icon. Use NOICON if there is no icon. 418 * both the title and icon. Use NOICON if there is no icon.
419 */ 419 */
420void gui_synclist_set_title(struct gui_synclist * gui_list, 420void gui_synclist_set_title(struct gui_synclist * gui_list,
421 char * title, enum themable_icons icon) 421 const char * title, enum themable_icons icon)
422{ 422{
423 gui_list->title = title; 423 gui_list->title = title;
424 gui_list->title_icon = icon; 424 gui_list->title_icon = icon;
diff --git a/apps/gui/list.h b/apps/gui/list.h
index ed61889083..7865dddc08 100644
--- a/apps/gui/list.h
+++ b/apps/gui/list.h
@@ -118,7 +118,7 @@ struct gui_synclist
118 /* The data that will be passed to the callback function YOU implement */ 118 /* The data that will be passed to the callback function YOU implement */
119 void * data; 119 void * data;
120 /* The optional title, set to NULL for none */ 120 /* The optional title, set to NULL for none */
121 char * title; 121 const char * title;
122 /* Optional title icon */ 122 /* Optional title icon */
123 enum themable_icons title_icon; 123 enum themable_icons title_icon;
124 bool show_selection_marker; /* set to true by default */ 124 bool show_selection_marker; /* set to true by default */
@@ -166,7 +166,7 @@ extern void gui_synclist_add_item(struct gui_synclist * lists);
166extern void gui_synclist_del_item(struct gui_synclist * lists); 166extern void gui_synclist_del_item(struct gui_synclist * lists);
167extern void gui_synclist_limit_scroll(struct gui_synclist * lists, bool scroll); 167extern void gui_synclist_limit_scroll(struct gui_synclist * lists, bool scroll);
168extern void gui_synclist_flash(struct gui_synclist * lists); 168extern void gui_synclist_flash(struct gui_synclist * lists);
169extern void gui_synclist_set_title(struct gui_synclist * lists, char * title, 169extern void gui_synclist_set_title(struct gui_synclist * lists, const char * title,
170 enum themable_icons icon); 170 enum themable_icons icon);
171extern void gui_synclist_hide_selection_marker(struct gui_synclist *lists, 171extern void gui_synclist_hide_selection_marker(struct gui_synclist *lists,
172 bool hide); 172 bool hide);