summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/calendar.c2
-rw-r--r--apps/plugins/chessbox/chessbox_pgn.c3
-rw-r--r--apps/plugins/keybox.c2
-rw-r--r--apps/plugins/keyremap.c2
-rw-r--r--apps/plugins/lrcplayer.c3
-rw-r--r--apps/plugins/main_menu_config.c2
-rw-r--r--apps/plugins/open_plugins.c4
-rw-r--r--apps/plugins/properties.c2
-rw-r--r--apps/plugins/puzzles/rockbox.c6
-rw-r--r--apps/plugins/random_folder_advance_config.c2
-rw-r--r--apps/plugins/rb_info.c2
-rw-r--r--apps/plugins/shopper.c2
-rw-r--r--apps/plugins/shortcuts/shortcuts_view.c7
-rw-r--r--apps/plugins/text_editor.c2
14 files changed, 17 insertions, 24 deletions
diff --git a/apps/plugins/calendar.c b/apps/plugins/calendar.c
index 3299a81273..a70f47c34b 100644
--- a/apps/plugins/calendar.c
+++ b/apps/plugins/calendar.c
@@ -964,7 +964,7 @@ static bool view_events(int selected, struct shown *shown)
964 while (!exit) 964 while (!exit)
965 { 965 {
966 button = rb->get_action(CONTEXT_LIST, TIMEOUT_BLOCK); 966 button = rb->get_action(CONTEXT_LIST, TIMEOUT_BLOCK);
967 rb->gui_synclist_do_button(&gui_memos, &button, LIST_WRAP_UNLESS_HELD); 967 rb->gui_synclist_do_button(&gui_memos, &button);
968 968
969 switch (button) 969 switch (button)
970 { 970 {
diff --git a/apps/plugins/chessbox/chessbox_pgn.c b/apps/plugins/chessbox/chessbox_pgn.c
index ccbcc7e91d..bb35bec726 100644
--- a/apps/plugins/chessbox/chessbox_pgn.c
+++ b/apps/plugins/chessbox/chessbox_pgn.c
@@ -686,9 +686,8 @@ struct pgn_game_node* pgn_show_game_list(struct pgn_game_node* first_game){
686 while (true) { 686 while (true) {
687 curr_selection = rb->gui_synclist_get_sel_pos(&games_list); 687 curr_selection = rb->gui_synclist_get_sel_pos(&games_list);
688 button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK); 688 button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK);
689 if (rb->gui_synclist_do_button(&games_list,&button,LIST_WRAP_OFF)){ 689 if (rb->gui_synclist_do_button(&games_list, &button))
690 continue; 690 continue;
691 }
692 switch (button) { 691 switch (button) {
693 case ACTION_STD_OK: 692 case ACTION_STD_OK:
694 return get_game_info(curr_selection, first_game); 693 return get_game_info(curr_selection, first_game);
diff --git a/apps/plugins/keybox.c b/apps/plugins/keybox.c
index 38783508e7..cb2e23a94a 100644
--- a/apps/plugins/keybox.c
+++ b/apps/plugins/keybox.c
@@ -567,7 +567,7 @@ static int keybox(void)
567 { 567 {
568 rb->gui_synclist_draw(&kb_list); 568 rb->gui_synclist_draw(&kb_list);
569 button = rb->get_action(CONTEXT_LIST, TIMEOUT_BLOCK); 569 button = rb->get_action(CONTEXT_LIST, TIMEOUT_BLOCK);
570 if (rb->gui_synclist_do_button(&kb_list, &button, LIST_WRAP_UNLESS_HELD)) 570 if (rb->gui_synclist_do_button(&kb_list, &button))
571 continue; 571 continue;
572 572
573 switch (button) 573 switch (button)
diff --git a/apps/plugins/keyremap.c b/apps/plugins/keyremap.c
index aaf530318a..8699d86bd2 100644
--- a/apps/plugins/keyremap.c
+++ b/apps/plugins/keyremap.c
@@ -2054,7 +2054,7 @@ enum plugin_status plugin_start(const void* parameter)
2054 redraw = true; 2054 redraw = true;
2055 2055
2056 ret = menu_action_cb(&action, selected_item, &exit, &lists); 2056 ret = menu_action_cb(&action, selected_item, &exit, &lists);
2057 if (rb->gui_synclist_do_button(&lists,&action,LIST_WRAP_UNLESS_HELD)) 2057 if (rb->gui_synclist_do_button(&lists, &action))
2058 continue; 2058 continue;
2059 selected_item = rb->gui_synclist_get_sel_pos(&lists); 2059 selected_item = rb->gui_synclist_get_sel_pos(&lists);
2060 2060
diff --git a/apps/plugins/lrcplayer.c b/apps/plugins/lrcplayer.c
index 6c26db7a33..32d001add9 100644
--- a/apps/plugins/lrcplayer.c
+++ b/apps/plugins/lrcplayer.c
@@ -2078,8 +2078,7 @@ static int timetag_editor(void)
2078 while (!exit) 2078 while (!exit)
2079 { 2079 {
2080 button = rb->get_action(CONTEXT_TREE, TIMEOUT_BLOCK); 2080 button = rb->get_action(CONTEXT_TREE, TIMEOUT_BLOCK);
2081 if (rb->gui_synclist_do_button(&gui_editor, &button, 2081 if (rb->gui_synclist_do_button(&gui_editor, &button))
2082 LIST_WRAP_UNLESS_HELD))
2083 continue; 2082 continue;
2084 2083
2085 switch (button) 2084 switch (button)
diff --git a/apps/plugins/main_menu_config.c b/apps/plugins/main_menu_config.c
index 9f651094b1..a5488ed2c0 100644
--- a/apps/plugins/main_menu_config.c
+++ b/apps/plugins/main_menu_config.c
@@ -188,7 +188,7 @@ enum plugin_status plugin_start(const void* parameter)
188 { 188 {
189 cur_sel = rb->gui_synclist_get_sel_pos(&list); 189 cur_sel = rb->gui_synclist_get_sel_pos(&list);
190 action = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK); 190 action = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK);
191 if (rb->gui_synclist_do_button(&list,&action,LIST_WRAP_UNLESS_HELD)) 191 if (rb->gui_synclist_do_button(&list, &action))
192 continue; 192 continue;
193 193
194 switch (action) 194 switch (action)
diff --git a/apps/plugins/open_plugins.c b/apps/plugins/open_plugins.c
index 0bd9740fe7..7230387efb 100644
--- a/apps/plugins/open_plugins.c
+++ b/apps/plugins/open_plugins.c
@@ -681,7 +681,7 @@ static void edit_menu(int selection)
681 { 681 {
682 action = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK); 682 action = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK);
683 683
684 if (rb->gui_synclist_do_button(&lists,&action,LIST_WRAP_UNLESS_HELD)) 684 if (rb->gui_synclist_do_button(&lists, &action))
685 continue; 685 continue;
686 selected_item = rb->gui_synclist_get_sel_pos(&lists); 686 selected_item = rb->gui_synclist_get_sel_pos(&lists);
687 switch (action) 687 switch (action)
@@ -864,7 +864,7 @@ reopen_datfile:
864 { 864 {
865 action = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK); 865 action = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK);
866 866
867 if (rb->gui_synclist_do_button(&lists,&action,LIST_WRAP_UNLESS_HELD)) 867 if (rb->gui_synclist_do_button(&lists, &action))
868 continue; 868 continue;
869 selection = rb->gui_synclist_get_sel_pos(&lists); 869 selection = rb->gui_synclist_get_sel_pos(&lists);
870 switch (action) 870 switch (action)
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c
index 89ea722e9e..ff8c281bed 100644
--- a/apps/plugins/properties.c
+++ b/apps/plugins/properties.c
@@ -397,7 +397,7 @@ enum plugin_status plugin_start(const void* parameter)
397 { 397 {
398 button = rb->get_action(CONTEXT_LIST, HZ); 398 button = rb->get_action(CONTEXT_LIST, HZ);
399 /* HZ so the status bar redraws corectly */ 399 /* HZ so the status bar redraws corectly */
400 if (rb->gui_synclist_do_button(&properties_lists,&button,LIST_WRAP_UNLESS_HELD)) 400 if (rb->gui_synclist_do_button(&properties_lists, &button))
401 continue; 401 continue;
402 switch(button) 402 switch(button)
403 { 403 {
diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c
index 09b247e184..563820ba23 100644
--- a/apps/plugins/puzzles/rockbox.c
+++ b/apps/plugins/puzzles/rockbox.c
@@ -2458,7 +2458,7 @@ static int list_choose(const char *list_str, const char *title, int sel)
2458 { 2458 {
2459 rb->gui_synclist_draw(&list); 2459 rb->gui_synclist_draw(&list);
2460 int button = rb->get_action(CONTEXT_LIST, TIMEOUT_BLOCK); 2460 int button = rb->get_action(CONTEXT_LIST, TIMEOUT_BLOCK);
2461 if(rb->gui_synclist_do_button(&list, &button, LIST_WRAP_UNLESS_HELD)) 2461 if(rb->gui_synclist_do_button(&list, &button))
2462 continue; 2462 continue;
2463 switch(button) 2463 switch(button)
2464 { 2464 {
@@ -2672,7 +2672,7 @@ static bool config_menu(void)
2672 { 2672 {
2673 rb->gui_synclist_draw(&list); 2673 rb->gui_synclist_draw(&list);
2674 int button = rb->get_action(CONTEXT_LIST, TIMEOUT_BLOCK); 2674 int button = rb->get_action(CONTEXT_LIST, TIMEOUT_BLOCK);
2675 if(rb->gui_synclist_do_button(&list, &button, LIST_WRAP_UNLESS_HELD)) 2675 if(rb->gui_synclist_do_button(&list, &button))
2676 continue; 2676 continue;
2677 switch(button) 2677 switch(button)
2678 { 2678 {
@@ -2757,7 +2757,7 @@ static int do_preset_menu(struct preset_menu *menu, char *title, int selected)
2757 { 2757 {
2758 rb->gui_synclist_draw(&list); 2758 rb->gui_synclist_draw(&list);
2759 int button = rb->get_action(CONTEXT_LIST, TIMEOUT_BLOCK); 2759 int button = rb->get_action(CONTEXT_LIST, TIMEOUT_BLOCK);
2760 if(rb->gui_synclist_do_button(&list, &button, LIST_WRAP_UNLESS_HELD)) 2760 if(rb->gui_synclist_do_button(&list, &button))
2761 continue; 2761 continue;
2762 switch(button) 2762 switch(button)
2763 { 2763 {
diff --git a/apps/plugins/random_folder_advance_config.c b/apps/plugins/random_folder_advance_config.c
index 2c22298cd4..5688ff93d3 100644
--- a/apps/plugins/random_folder_advance_config.c
+++ b/apps/plugins/random_folder_advance_config.c
@@ -317,7 +317,7 @@ static int edit_list(void)
317 { 317 {
318 rb->gui_synclist_draw(&lists); 318 rb->gui_synclist_draw(&lists);
319 button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK); 319 button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK);
320 if (rb->gui_synclist_do_button(&lists,&button,LIST_WRAP_UNLESS_HELD)) 320 if (rb->gui_synclist_do_button(&lists, &button))
321 continue; 321 continue;
322 selection = rb->gui_synclist_get_sel_pos(&lists); 322 selection = rb->gui_synclist_get_sel_pos(&lists);
323 switch (button) 323 switch (button)
diff --git a/apps/plugins/rb_info.c b/apps/plugins/rb_info.c
index 1385a5a9fc..f123a623d2 100644
--- a/apps/plugins/rb_info.c
+++ b/apps/plugins/rb_info.c
@@ -557,7 +557,7 @@ enum plugin_status plugin_start(const void* parameter)
557 else 557 else
558 redraw = true; 558 redraw = true;
559 ret = menu_action_cb(&action, selected_item, &exit, &lists); 559 ret = menu_action_cb(&action, selected_item, &exit, &lists);
560 if (rb->gui_synclist_do_button(&lists,&action,LIST_WRAP_UNLESS_HELD)) 560 if (rb->gui_synclist_do_button(&lists, &action))
561 continue; 561 continue;
562 selected_item = rb->gui_synclist_get_sel_pos(&lists); 562 selected_item = rb->gui_synclist_get_sel_pos(&lists);
563 } 563 }
diff --git a/apps/plugins/shopper.c b/apps/plugins/shopper.c
index 31ef44b831..25a484a31e 100644
--- a/apps/plugins/shopper.c
+++ b/apps/plugins/shopper.c
@@ -315,7 +315,7 @@ enum plugin_status plugin_start(const void* parameter)
315 rb->gui_synclist_draw(&lists); 315 rb->gui_synclist_draw(&lists);
316 cur_sel = rb->gui_synclist_get_sel_pos(&lists); 316 cur_sel = rb->gui_synclist_get_sel_pos(&lists);
317 button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK); 317 button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK);
318 if (rb->gui_synclist_do_button(&lists,&button,LIST_WRAP_UNLESS_HELD)) 318 if (rb->gui_synclist_do_button(&lists, &button))
319 continue; 319 continue;
320 switch (button) 320 switch (button)
321 { 321 {
diff --git a/apps/plugins/shortcuts/shortcuts_view.c b/apps/plugins/shortcuts/shortcuts_view.c
index 9584731989..2a7970bebe 100644
--- a/apps/plugins/shortcuts/shortcuts_view.c
+++ b/apps/plugins/shortcuts/shortcuts_view.c
@@ -59,13 +59,8 @@ enum sc_list_action_type draw_sc_list(struct gui_synclist *gui_sc)
59 /* user input */ 59 /* user input */
60 button = rb->get_action(CONTEXT_LIST, HZ); 60 button = rb->get_action(CONTEXT_LIST, HZ);
61 /* HZ so the status bar redraws corectly */ 61 /* HZ so the status bar redraws corectly */
62 if (rb->gui_synclist_do_button(gui_sc, &button, 62 if (rb->gui_synclist_do_button(gui_sc, &button))
63 LIST_WRAP_UNLESS_HELD)) {
64 /* automatic handling of user input.
65 * _UNLESS_HELD can be _ON or _OFF also
66 * selection changed, so redraw */
67 continue; 63 continue;
68 }
69 switch (button) { /* process the user input */ 64 switch (button) { /* process the user input */
70 case ACTION_STD_OK: 65 case ACTION_STD_OK:
71 return SCLA_SELECT; 66 return SCLA_SELECT;
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c
index 748e872d0b..8740606c58 100644
--- a/apps/plugins/text_editor.c
+++ b/apps/plugins/text_editor.c
@@ -394,7 +394,7 @@ enum plugin_status plugin_start(const void* parameter)
394 rb->gui_synclist_draw(&lists); 394 rb->gui_synclist_draw(&lists);
395 cur_sel = rb->gui_synclist_get_sel_pos(&lists); 395 cur_sel = rb->gui_synclist_get_sel_pos(&lists);
396 button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK); 396 button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK);
397 if (rb->gui_synclist_do_button(&lists,&button,LIST_WRAP_UNLESS_HELD)) 397 if (rb->gui_synclist_do_button(&lists, &button))
398 continue; 398 continue;
399 switch (button) 399 switch (button)
400 { 400 {