mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-17 17:12:39 -05:00
minor update to gui_synclist_do_button() which will hopefully simplify things later.
Now returns true if the action was handled in that function instead of returning the handled action. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14733 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
344f45165f
commit
cf1cef5f57
21 changed files with 61 additions and 59 deletions
|
|
@ -808,7 +808,7 @@ struct pgn_game_node* pgn_show_game_list(struct plugin_api* api,
|
|||
rb->gui_synclist_draw(&games_list);
|
||||
curr_selection = rb->gui_synclist_get_sel_pos(&games_list);
|
||||
button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK);
|
||||
if (rb->gui_synclist_do_button(&games_list,button,LIST_WRAP_OFF)){
|
||||
if (rb->gui_synclist_do_button(&games_list,&button,LIST_WRAP_OFF)){
|
||||
continue;
|
||||
}
|
||||
switch (button) {
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ int menu_show(int m)
|
|||
*/
|
||||
if( menus[m].callback != NULL )
|
||||
key = menus[m].callback(key, m);
|
||||
rb->gui_synclist_do_button(&(menus[m].synclist), key,LIST_WRAP_UNLESS_HELD);
|
||||
rb->gui_synclist_do_button(&(menus[m].synclist), &key,LIST_WRAP_UNLESS_HELD);
|
||||
switch( key ) {
|
||||
case ACTION_STD_OK:
|
||||
return rb->gui_synclist_get_sel_pos(&(menus[m].synclist));
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file)
|
|||
while(!quit)
|
||||
{
|
||||
button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK);
|
||||
if (rb->gui_synclist_do_button(&properties_lists,button,LIST_WRAP_ON))
|
||||
if (rb->gui_synclist_do_button(&properties_lists,&button,LIST_WRAP_ON))
|
||||
continue;
|
||||
switch(button)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -288,7 +288,7 @@ void edit_list(void)
|
|||
{
|
||||
rb->gui_synclist_draw(&lists);
|
||||
button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK);
|
||||
if (rb->gui_synclist_do_button(&lists,button,LIST_WRAP_UNLESS_HELD))
|
||||
if (rb->gui_synclist_do_button(&lists,&button,LIST_WRAP_UNLESS_HELD))
|
||||
continue;
|
||||
selection = rb->gui_synclist_get_sel_pos(&lists);
|
||||
switch (button)
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ enum sc_list_action_type draw_sc_list(struct gui_synclist gui_sc)
|
|||
rb->gui_syncstatusbar_draw(rb->statusbars, true);
|
||||
/* user input */
|
||||
button = rb->get_action(CONTEXT_LIST, TIMEOUT_BLOCK);
|
||||
if (rb->gui_synclist_do_button(&gui_sc, button,
|
||||
if (rb->gui_synclist_do_button(&gui_sc, &button,
|
||||
LIST_WRAP_UNLESS_HELD)) {
|
||||
/* automatic handling of user input.
|
||||
* _UNLESS_HELD can be _ON or _OFF also
|
||||
|
|
|
|||
|
|
@ -374,7 +374,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
rb->gui_synclist_draw(&lists);
|
||||
cur_sel = rb->gui_synclist_get_sel_pos(&lists);
|
||||
button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK);
|
||||
if (rb->gui_synclist_do_button(&lists,button,LIST_WRAP_UNLESS_HELD))
|
||||
if (rb->gui_synclist_do_button(&lists,&button,LIST_WRAP_UNLESS_HELD))
|
||||
continue;
|
||||
switch (button)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue