summaryrefslogtreecommitdiff
path: root/frontends/amiga/clipboard.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2019-05-08 01:44:44 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2019-05-08 01:44:44 +0100
commitd0df3fa4b340071fbe54f9e7966f62b873b52b81 (patch)
tree240e20e7cfce91db430b4ab2aa06376f12c0b9d1 /frontends/amiga/clipboard.c
parent1cd30fdb3c1f163beceb0bde7485c10a886de531 (diff)
downloadnetsurf-d0df3fa4b340071fbe54f9e7966f62b873b52b81.tar.gz
netsurf-d0df3fa4b340071fbe54f9e7966f62b873b52b81.tar.bz2
more accessor for gui_window_2
Diffstat (limited to 'frontends/amiga/clipboard.c')
-rw-r--r--frontends/amiga/clipboard.c8
1 files changed, 4 insertions, 4 deletions
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);