diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-11-21 23:48:21 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-11-22 00:02:27 +0000 |
commit | c9683119c38792dabc2403869e389dbda4df7f23 (patch) | |
tree | d49d71c83ba9744541085b8bf7513809e0fcb885 | |
parent | 9dcf001a0bf6d09864783125390e20c8eb53c12f (diff) | |
download | netsurf-c9683119c38792dabc2403869e389dbda4df7f23.tar.gz netsurf-c9683119c38792dabc2403869e389dbda4df7f23.tar.bz2 |
Use browser_window_get_content where we need to.
-rw-r--r-- | amiga/menu.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/amiga/menu.c b/amiga/menu.c index cb3d6d61f..dd3714f39 100644 --- a/amiga/menu.c +++ b/amiga/menu.c @@ -788,7 +788,7 @@ static void ami_menu_item_project_save(struct Hook *hook, APTR window, struct In GetAttr(WINDOW_UserData, (Object *)window, (ULONG *)&gwin); - ami_file_save_req(type, gwin, gwin->gw->bw->current_content); + ami_file_save_req(type, gwin, browser_window_get_content(gwin->gw->bw)); } static void ami_menu_item_project_closetab(struct Hook *hook, APTR window, struct IntuiMessage *msg) @@ -813,7 +813,7 @@ static void ami_menu_item_project_print(struct Hook *hook, APTR window, struct I GetAttr(WINDOW_UserData, (Object *)window, (ULONG *)&gwin); ami_set_pointer(gwin, GUI_POINTER_WAIT, false); - ami_print_ui(gwin->gw->bw->current_content); + ami_print_ui(browser_window_get_content(gwin->gw->bw)); ami_reset_pointer(gwin); } @@ -893,7 +893,7 @@ static void ami_menu_item_edit_copy(struct Hook *hook, APTR window, struct Intui browser_window_key_press(gwin->gw->bw, KEY_COPY_SELECTION); browser_window_key_press(gwin->gw->bw, KEY_CLEAR_SELECTION); } - else if((bm = content_get_bitmap(gwin->gw->bw->current_content))) { + else if((bm = content_get_bitmap(browser_window_get_content(gwin->gw->bw)))) { /** @todo It should be checked that the lifetime of * the objects containing the values returned (and the * constness cast away) is safe. @@ -903,8 +903,8 @@ static void ami_menu_item_edit_copy(struct Hook *hook, APTR window, struct Intui ami_easy_clipboard_bitmap(bm); } #ifdef WITH_NS_SVG - else if(ami_mime_compare(gwin->gw->bw->current_content, "svg") == true) { - ami_easy_clipboard_svg(gwin->gw->bw->current_content); + else if(ami_mime_compare(browser_window_get_content(gwin->gw->bw), "svg") == true) { + ami_easy_clipboard_svg(browser_window_get_content(gwin->gw->bw)); } #endif } |