From 49e524c1d8812b82732e5e0842375e019c7f7226 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 16 Nov 2014 14:49:42 +0000 Subject: [PATCH] Fix amiga/clipboard.c for new structure --- amiga/clipboard.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/amiga/clipboard.c b/amiga/clipboard.c index e6d1d2fae..a14a7b7ad 100644 --- a/amiga/clipboard.c +++ b/amiga/clipboard.c @@ -89,7 +89,7 @@ void gui_start_selection(struct gui_window *g) OnMenu(g->shared->win, AMI_MENU_CLEAR); OnMenu(g->shared->win, AMI_MENU_COPY); - if (browser_window_get_editor_flags(g->shared->bw) & BW_EDITOR_CAN_CUT) + if (browser_window_get_editor_flags(g->bw) & BW_EDITOR_CAN_CUT) OnMenu(g->shared->win, AMI_MENU_CUT); } @@ -285,9 +285,9 @@ void ami_drag_selection(struct gui_window *g) { iffh = ami_clipboard_init_internal(1); - browser_window_key_press(g->shared->bw, KEY_COPY_SELECTION); - browser_window_mouse_click(gwin->bw, BROWSER_MOUSE_PRESS_1, x, y); - browser_window_key_press(gwin->bw, KEY_PASTE); + browser_window_key_press(g->bw, KEY_COPY_SELECTION); + browser_window_mouse_click(gwin->gw->bw, BROWSER_MOUSE_PRESS_1, x, y); + browser_window_key_press(gwin->gw->bw, KEY_PASTE); ami_clipboard_free_internal(iffh); iffh = old_iffh; @@ -299,7 +299,7 @@ void ami_drag_selection(struct gui_window *g) if(ami_gadget_hit(gwin->objects[GID_URL], x, y)) { - if((sel = browser_window_get_selection(g->shared->bw))) + if((sel = browser_window_get_selection(g->bw))) { utf8text = ami_utf8_easy(sel); RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_URL], @@ -310,7 +310,7 @@ void ami_drag_selection(struct gui_window *g) } else if(ami_gadget_hit(gwin->objects[GID_SEARCHSTRING], x, y)) { - if((sel = browser_window_get_selection(g->shared->bw))) + if((sel = browser_window_get_selection(g->bw))) { utf8text = ami_utf8_easy(sel); RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_SEARCHSTRING],