From 79e501075a0c301f435cf579518900e393be6fbf Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 13 Nov 2014 21:52:08 +0000 Subject: 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. --- amiga/context_menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'amiga/context_menu.c') 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) -- cgit v1.2.1