diff options
| -rw-r--r-- | apps/gui/list.c | 2 | ||||
| -rw-r--r-- | apps/gui/list.h | 4 | ||||
| -rw-r--r-- | apps/plugin.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index ccd8337..d7ecdcc 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) * both the title and icon. Use NOICON if there is no icon. */ void gui_synclist_set_title(struct gui_synclist * gui_list, - const char * title, enum themable_icons icon) + char * title, enum themable_icons icon) { gui_list->title = title; gui_list->title_icon = icon; diff --git a/apps/gui/list.h b/apps/gui/list.h index 7865ddd..ed61889 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h @@ -118,7 +118,7 @@ struct gui_synclist /* The data that will be passed to the callback function YOU implement */ void * data; /* The optional title, set to NULL for none */ - const char * title; + char * title; /* Optional title icon */ enum themable_icons title_icon; bool show_selection_marker; /* set to true by default */ @@ -166,7 +166,7 @@ extern void gui_synclist_add_item(struct gui_synclist * lists); extern void gui_synclist_del_item(struct gui_synclist * lists); extern void gui_synclist_limit_scroll(struct gui_synclist * lists, bool scroll); extern void gui_synclist_flash(struct gui_synclist * lists); -extern void gui_synclist_set_title(struct gui_synclist * lists, const char * title, +extern void gui_synclist_set_title(struct gui_synclist * lists, char * title, enum themable_icons icon); extern void gui_synclist_hide_selection_marker(struct gui_synclist *lists, bool hide); diff --git a/apps/plugin.h b/apps/plugin.h index 12ad3c0..b060104 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -352,7 +352,7 @@ struct plugin_api { void (*gui_synclist_limit_scroll)(struct gui_synclist * lists, bool scroll); bool (*gui_synclist_do_button)(struct gui_synclist * lists, int *action, enum list_wrap wrap); - void (*gui_synclist_set_title)(struct gui_synclist *lists, const char* title, + void (*gui_synclist_set_title)(struct gui_synclist *lists, char* title, enum themable_icons icon); enum yesno_res (*gui_syncyesno_run)(const struct text_message * main_message, const struct text_message * yes_message, |