forked from len0rd/rockbox
the menu and list now accepts a parent viewport to draw in (and the menu can be told to not show status/button bars). This lays the groundwork to fix colour problems with plugin menus (see star.c for an example.) This hopefully fixes some button bar issues as well as theme problems.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16812 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
af395f4db6
commit
5ca1539969
44 changed files with 202 additions and 111 deletions
|
@ -202,7 +202,7 @@ void save_changes(int overwrite)
|
|||
|
||||
void setup_lists(struct gui_synclist *lists, int sel)
|
||||
{
|
||||
rb->gui_synclist_init(lists,list_get_name_cb,0, false, 1);
|
||||
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_limit_scroll(lists,true);
|
||||
|
@ -222,7 +222,7 @@ int do_item_menu(int cur_sel, char* copy_buffer)
|
|||
"Insert Above", "Insert Below",
|
||||
"Concat To Above", "Save");
|
||||
|
||||
switch (rb->do_menu(&menu, NULL))
|
||||
switch (rb->do_menu(&menu, NULL, NULL, false))
|
||||
{
|
||||
case 0: /* cut */
|
||||
rb->strcpy(copy_buffer,&buffer[do_action(ACTION_GET,0,cur_sel)]);
|
||||
|
@ -400,7 +400,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
{
|
||||
MENUITEM_STRINGLIST(menu, "Edit What?", NULL,
|
||||
"Extension", "Color",);
|
||||
switch (rb->do_menu(&menu, NULL))
|
||||
switch (rb->do_menu(&menu, NULL, NULL, false))
|
||||
{
|
||||
case 0:
|
||||
edit_text = true;
|
||||
|
@ -468,7 +468,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
"Show Playback Menu", "Save Changes",
|
||||
"Save As...", "Save and Exit",
|
||||
"Ignore Changes and Exit");
|
||||
switch (rb->do_menu(&menu, NULL))
|
||||
switch (rb->do_menu(&menu, NULL, NULL, false))
|
||||
{
|
||||
case 0:
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue