summaryrefslogtreecommitdiff
path: root/amiga/context_menu.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-11-13 21:52:08 +0000
committerVincent Sanders <vince@kyllikki.org>2014-11-13 21:52:08 +0000
commit79e501075a0c301f435cf579518900e393be6fbf (patch)
tree2a75077894650e493c95d1062cc4945980985309 /amiga/context_menu.c
parent9fde3502b659d3858cd1978d2c6535c57efbe924 (diff)
downloadnetsurf-79e501075a0c301f435cf579518900e393be6fbf.tar.gz
netsurf-79e501075a0c301f435cf579518900e393be6fbf.tar.bz2
make the form select menu API smaller.
By hiding all but the form selection menu option structure from code outside of render this reduces the API to the absolute minimum to support this feature.
Diffstat (limited to 'amiga/context_menu.c')
-rw-r--r--amiga/context_menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/amiga/context_menu.c b/amiga/context_menu.c
index f2b40373c..2385f1b42 100644
--- a/amiga/context_menu.c
+++ b/amiga/context_menu.c
@@ -1280,7 +1280,7 @@ void gui_create_form_select_menu(struct gui_window *g,
*/
struct gui_window *gwin = g;
- struct form_option *opt = control->data.select.items;
+ struct form_option *opt = form_select_get_option(control, 0);
ULONG i = 0;
if(ctxmenuobj) DisposeObject(ctxmenuobj);
@@ -1291,7 +1291,7 @@ void gui_create_form_select_menu(struct gui_window *g,
gwin->shared->control = control;
- ctxmenuobj = PMMENU(ami_utf8_easy(control->name)),
+ ctxmenuobj = PMMENU(ami_utf8_easy(form_control_get_name(control))),
PMA_MenuHandler, &ctxmenuhook, End;
while(opt)