diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-11-13 21:52:08 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-11-13 21:52:08 +0000 |
commit | 79e501075a0c301f435cf579518900e393be6fbf (patch) | |
tree | 2a75077894650e493c95d1062cc4945980985309 /amiga/context_menu.c | |
parent | 9fde3502b659d3858cd1978d2c6535c57efbe924 (diff) | |
download | netsurf-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.c | 4 |
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) |