summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-09-17 10:08:50 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-09-17 10:08:50 +0000
commitcf1cef5f573ca6961041c9ab53649ac52f6b1e93 (patch)
treef4be937b805d829c354e0ad723b4cf3b7089f29b /apps/plugins
parent344f45165f4b1f76b95883895be3634225a10cbb (diff)
downloadrockbox-cf1cef5f573ca6961041c9ab53649ac52f6b1e93.tar.gz
rockbox-cf1cef5f573ca6961041c9ab53649ac52f6b1e93.zip
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.c2
-rw-r--r--apps/plugins/lib/oldmenuapi.c2
-rw-r--r--apps/plugins/properties.c2
-rw-r--r--apps/plugins/random_folder_advance_config.c2
-rw-r--r--apps/plugins/shortcuts/shortcuts_view.c2
-rw-r--r--apps/plugins/text_editor.c2
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,
808 rb->gui_synclist_draw(&games_list); 808 rb->gui_synclist_draw(&games_list);
809 curr_selection = rb->gui_synclist_get_sel_pos(&games_list); 809 curr_selection = rb->gui_synclist_get_sel_pos(&games_list);
810 button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK); 810 button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK);
811 if (rb->gui_synclist_do_button(&games_list,button,LIST_WRAP_OFF)){ 811 if (rb->gui_synclist_do_button(&games_list,&button,LIST_WRAP_OFF)){
812 continue; 812 continue;
813 } 813 }
814 switch (button) { 814 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)
107 */ 107 */
108 if( menus[m].callback != NULL ) 108 if( menus[m].callback != NULL )
109 key = menus[m].callback(key, m); 109 key = menus[m].callback(key, m);
110 rb->gui_synclist_do_button(&(menus[m].synclist), key,LIST_WRAP_UNLESS_HELD); 110 rb->gui_synclist_do_button(&(menus[m].synclist), &key,LIST_WRAP_UNLESS_HELD);
111 switch( key ) { 111 switch( key ) {
112 case ACTION_STD_OK: 112 case ACTION_STD_OK:
113 return rb->gui_synclist_get_sel_pos(&(menus[m].synclist)); 113 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)
318 while(!quit) 318 while(!quit)
319 { 319 {
320 button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK); 320 button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK);
321 if (rb->gui_synclist_do_button(&properties_lists,button,LIST_WRAP_ON)) 321 if (rb->gui_synclist_do_button(&properties_lists,&button,LIST_WRAP_ON))
322 continue; 322 continue;
323 switch(button) 323 switch(button)
324 { 324 {
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)
288 { 288 {
289 rb->gui_synclist_draw(&lists); 289 rb->gui_synclist_draw(&lists);
290 button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK); 290 button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK);
291 if (rb->gui_synclist_do_button(&lists,button,LIST_WRAP_UNLESS_HELD)) 291 if (rb->gui_synclist_do_button(&lists,&button,LIST_WRAP_UNLESS_HELD))
292 continue; 292 continue;
293 selection = rb->gui_synclist_get_sel_pos(&lists); 293 selection = rb->gui_synclist_get_sel_pos(&lists);
294 switch (button) 294 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)
59 rb->gui_syncstatusbar_draw(rb->statusbars, true); 59 rb->gui_syncstatusbar_draw(rb->statusbars, true);
60 /* user input */ 60 /* user input */
61 button = rb->get_action(CONTEXT_LIST, TIMEOUT_BLOCK); 61 button = rb->get_action(CONTEXT_LIST, TIMEOUT_BLOCK);
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)) { 63 LIST_WRAP_UNLESS_HELD)) {
64 /* automatic handling of user input. 64 /* automatic handling of user input.
65 * _UNLESS_HELD can be _ON or _OFF also 65 * _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)
374 rb->gui_synclist_draw(&lists); 374 rb->gui_synclist_draw(&lists);
375 cur_sel = rb->gui_synclist_get_sel_pos(&lists); 375 cur_sel = rb->gui_synclist_get_sel_pos(&lists);
376 button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK); 376 button = rb->get_action(CONTEXT_LIST,TIMEOUT_BLOCK);
377 if (rb->gui_synclist_do_button(&lists,button,LIST_WRAP_UNLESS_HELD)) 377 if (rb->gui_synclist_do_button(&lists,&button,LIST_WRAP_UNLESS_HELD))
378 continue; 378 continue;
379 switch (button) 379 switch (button)
380 { 380 {