mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
list: remove redundant setting of icon callback to NULL
gui_synclist_init already does this for us Change-Id: I1288d389c6191416cbc3da37a333b1cad84ee779
This commit is contained in:
parent
68fc5b4a7a
commit
6d19214eeb
12 changed files with 0 additions and 14 deletions
|
@ -504,7 +504,6 @@ bool option_screen(const struct settings_list *setting,
|
|||
title = P2STR(option_title);
|
||||
|
||||
gui_synclist_set_title(&lists, title, Icon_Questionmark);
|
||||
gui_synclist_set_icon_callback(&lists, NULL);
|
||||
if(global_settings.talk_menu)
|
||||
gui_synclist_set_voice_callback(&lists, option_talk);
|
||||
|
||||
|
|
|
@ -1219,7 +1219,6 @@ bool search_playlist(void)
|
|||
gui_synclist_init(&playlist_lists, playlist_search_callback_name,
|
||||
&s_data, false, 1, NULL);
|
||||
gui_synclist_set_title(&playlist_lists, str(LANG_SEARCH_RESULTS), NOICON);
|
||||
gui_synclist_set_icon_callback(&playlist_lists, NULL);
|
||||
if(global_settings.talk_file)
|
||||
gui_synclist_set_voice_callback(&playlist_lists,
|
||||
global_settings.talk_file?
|
||||
|
|
|
@ -674,7 +674,6 @@ struct pgn_game_node* pgn_show_game_list(struct pgn_game_node* first_game){
|
|||
|
||||
rb->gui_synclist_init(&games_list, &get_game_text, first_game, false, 1, NULL);
|
||||
rb->gui_synclist_set_title(&games_list, rb->str(LANG_CHESSBOX_GAMES), NOICON);
|
||||
rb->gui_synclist_set_icon_callback(&games_list, NULL);
|
||||
if (rb->global_settings->talk_menu)
|
||||
rb->gui_synclist_set_voice_callback(&games_list, speak_game_selection);
|
||||
rb->gui_synclist_set_nb_items(&games_list, i);
|
||||
|
|
|
@ -657,7 +657,6 @@ enum plugin_status plugin_start(const void *parameter)
|
|||
rb->gui_synclist_init(&kb_list, &kb_list_cb, NULL, false, 1, NULL);
|
||||
|
||||
rb->gui_synclist_set_title(&kb_list, "Keybox", NOICON);
|
||||
rb->gui_synclist_set_icon_callback(&kb_list, NULL);
|
||||
rb->gui_synclist_set_nb_items(&kb_list, 0);
|
||||
rb->gui_synclist_select_item(&kb_list, 0);
|
||||
|
||||
|
|
|
@ -643,7 +643,6 @@ static void synclist_set(char* menu_id, int selection, int items, int sel_size)
|
|||
rb->gui_synclist_init(&lists,list_get_name_cb,
|
||||
menu_id, false, sel_size, NULL);
|
||||
|
||||
rb->gui_synclist_set_icon_callback(&lists,NULL);
|
||||
rb->gui_synclist_set_voice_callback(&lists, list_voice_cb);
|
||||
rb->gui_synclist_set_nb_items(&lists,items);
|
||||
rb->gui_synclist_select_item(&lists, selection);
|
||||
|
|
|
@ -2455,7 +2455,6 @@ static int list_choose(const char *list_str, const char *title, int sel)
|
|||
struct gui_synclist list;
|
||||
|
||||
rb->gui_synclist_init(&list, &config_choices_formatter, (void*)list_str, false, 1, NULL);
|
||||
rb->gui_synclist_set_icon_callback(&list, NULL);
|
||||
rb->gui_synclist_set_nb_items(&list, n);
|
||||
|
||||
rb->gui_synclist_select_item(&list, sel);
|
||||
|
@ -2668,7 +2667,6 @@ static bool config_menu_core(int which)
|
|||
struct gui_synclist list;
|
||||
|
||||
rb->gui_synclist_init(&list, &config_formatter, config, false, 1, NULL);
|
||||
rb->gui_synclist_set_icon_callback(&list, NULL);
|
||||
rb->gui_synclist_set_nb_items(&list, n);
|
||||
|
||||
rb->gui_synclist_select_item(&list, 0);
|
||||
|
@ -2763,7 +2761,6 @@ static int do_preset_menu(struct preset_menu *menu, char *title, int selected)
|
|||
struct gui_synclist list;
|
||||
|
||||
rb->gui_synclist_init(&list, &preset_formatter, menu, false, 1, NULL);
|
||||
rb->gui_synclist_set_icon_callback(&list, NULL);
|
||||
rb->gui_synclist_set_nb_items(&list, menu->n_entries);
|
||||
|
||||
rb->gui_synclist_select_item(&list, selected);
|
||||
|
|
|
@ -309,7 +309,6 @@ static int edit_list(void)
|
|||
dirs_count = list->count;
|
||||
|
||||
rb->gui_synclist_init(&lists,list_get_name_cb,0, false, 1, NULL);
|
||||
rb->gui_synclist_set_icon_callback(&lists,NULL);
|
||||
rb->gui_synclist_set_nb_items(&lists,list->count);
|
||||
rb->gui_synclist_select_item(&lists, 0);
|
||||
|
||||
|
|
|
@ -518,7 +518,6 @@ static void synclist_set(char* menu_id, int selected_item, int items, int sel_si
|
|||
{
|
||||
rb->gui_synclist_set_title(&lists, NULL,-1);
|
||||
}
|
||||
rb->gui_synclist_set_icon_callback(&lists,NULL);
|
||||
rb->gui_synclist_set_voice_callback(&lists, list_voice_cb);
|
||||
rb->gui_synclist_set_nb_items(&lists,items);
|
||||
rb->gui_synclist_select_item(&lists, selected_item);
|
||||
|
|
|
@ -761,7 +761,6 @@ static int commit_menu(void)
|
|||
int selection, ret = 0;
|
||||
|
||||
rb->gui_synclist_init(&lists,list_get_name_cb,0, false, 1, NULL);
|
||||
rb->gui_synclist_set_icon_callback(&lists, NULL);
|
||||
rb->gui_synclist_set_nb_items(&lists, 9);
|
||||
rb->gui_synclist_select_item(&lists, 0);
|
||||
|
||||
|
|
|
@ -212,7 +212,6 @@ static bool save_changes(int overwrite)
|
|||
static void setup_lists(struct gui_synclist *lists, int sel)
|
||||
{
|
||||
rb->gui_synclist_init(lists,list_get_name_cb,0, false, 1, NULL);
|
||||
rb->gui_synclist_set_icon_callback(lists,NULL);
|
||||
rb->gui_synclist_set_nb_items(lists,line_count);
|
||||
rb->gui_synclist_select_item(lists, sel);
|
||||
rb->gui_synclist_draw(lists);
|
||||
|
|
|
@ -485,7 +485,6 @@ int handle_radio_presets(void)
|
|||
|
||||
gui_synclist_init(&lists, presets_get_name, NULL, false, 1, NULL);
|
||||
gui_synclist_set_title(&lists, str(LANG_PRESET), NOICON);
|
||||
gui_synclist_set_icon_callback(&lists, NULL);
|
||||
if(global_settings.talk_file)
|
||||
gui_synclist_set_voice_callback(&lists, presets_speak_name);
|
||||
gui_synclist_set_nb_items(&lists, num_presets);
|
||||
|
|
|
@ -900,7 +900,6 @@ int view_runtime(void)
|
|||
gui_synclist_set_title(&lists, str(LANG_RUNNING_TIME), NOICON);
|
||||
if(global_settings.talk_menu)
|
||||
gui_synclist_set_voice_callback(&lists, runtime_speak_data);
|
||||
gui_synclist_set_icon_callback(&lists, NULL);
|
||||
gui_synclist_set_nb_items(&lists, 4);
|
||||
|
||||
while(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue