diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-09-17 10:08:50 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-09-17 10:08:50 +0000 |
commit | cf1cef5f573ca6961041c9ab53649ac52f6b1e93 (patch) | |
tree | f4be937b805d829c354e0ad723b4cf3b7089f29b /apps/plugins | |
parent | 344f45165f4b1f76b95883895be3634225a10cbb (diff) |
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
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/chessbox/chessbox_pgn.c | 2 | ||||
-rw-r--r-- | apps/plugins/lib/oldmenuapi.c | 2 | ||||
-rw-r--r-- | apps/plugins/properties.c | 2 | ||||
-rw-r--r-- | apps/plugins/random_folder_advance_config.c | 2 | ||||
-rw-r--r-- | apps/plugins/shortcuts/shortcuts_view.c | 2 | ||||
-rw-r--r-- | apps/plugins/text_editor.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/chessbox/chessbox_pgn.c b/apps/plugins/chessbox/chessbox_pgn.c index fb04f6ac38..3780e32466 100644 --- a/apps/plugins/chessbox/chessbox_pgn.c +++ b/apps/plugins/chessbox/chessbox_pgn.c @@ -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) { diff --git a/apps/plugins/lib/oldmenuapi.c b/apps/plugins/lib/oldmenuapi.c index 742d394a50..07681a0b18 100644 --- a/apps/plugins/lib/oldmenuapi.c +++ b/apps/plugins/lib/oldmenuapi.c @@ -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)); diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index 932e5bc71e..ca18d49f50 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c @@ -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) { diff --git a/apps/plugins/random_folder_advance_config.c b/apps/plugins/random_folder_advance_config.c index 6ed36c6065..656daeaaf8 100644 --- a/apps/plugins/random_folder_advance_config.c +++ b/apps/plugins/random_folder_advance_config.c @@ -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) diff --git a/apps/plugins/shortcuts/shortcuts_view.c b/apps/plugins/shortcuts/shortcuts_view.c index 3b28b4b34c..f61177f37a 100644 --- a/apps/plugins/shortcuts/shortcuts_view.c +++ b/apps/plugins/shortcuts/shortcuts_view.c @@ -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 diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index 3ac8cab3f2..dd5f4b7b53 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c @@ -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) { |