From d0df3fa4b340071fbe54f9e7966f62b873b52b81 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Wed, 8 May 2019 01:44:44 +0100 Subject: more accessor for gui_window_2 --- frontends/amiga/clipboard.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'frontends/amiga/clipboard.c') diff --git a/frontends/amiga/clipboard.c b/frontends/amiga/clipboard.c index 7a5c5f4d9..731492bb3 100644 --- a/frontends/amiga/clipboard.c +++ b/frontends/amiga/clipboard.c @@ -299,23 +299,23 @@ void ami_drag_selection(struct gui_window *g) x = ami_gui2_get_window(gwin)->MouseX; y = ami_gui2_get_window(gwin)->MouseY; - if(ami_gadget_hit(gwin->objects[GID_URL], x, y)) + if(ami_gadget_hit(ami_gui2_get_object(gwin, AMI_GAD_URL), x, y)) { if((sel = browser_window_get_selection(ami_gui_get_browser_window(g)))) { utf8text = ami_utf8_easy(sel); - RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_URL], + RefreshSetGadgetAttrs((struct Gadget *)ami_gui2_get_object(gwin, AMI_GAD_URL), ami_gui2_get_window(gwin), NULL, STRINGA_TextVal, utf8text, TAG_DONE); free(sel); ami_utf8_free(utf8text); } } - else if(ami_gadget_hit(gwin->objects[GID_SEARCHSTRING], x, y)) + else if(ami_gadget_hit(ami_gui2_get_object(gwin, AMI_GAD_SEARCH), x, y)) { if((sel = browser_window_get_selection(ami_gui_get_browser_window(g)))) { utf8text = ami_utf8_easy(sel); - RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_SEARCHSTRING], + RefreshSetGadgetAttrs((struct Gadget *)ami_gui2_get_object(gwin, AMI_GAD_SEARCH), ami_gui2_get_window(gwin), NULL, STRINGA_TextVal, utf8text, TAG_DONE); free(sel); ami_utf8_free(utf8text); -- cgit v1.2.3