summaryrefslogtreecommitdiff
path: root/amiga/menu.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-07-06 18:34:34 +0100
committerVincent Sanders <vince@kyllikki.org>2014-07-06 18:34:34 +0100
commit3a9fa29ee53bef70a0e643847acc2fb374501f70 (patch)
treee9a8946c7655e03e4c9a9d702bbf36b1952a92df /amiga/menu.c
parentcaf918d2f28f600184036aef3f096024d3af62a7 (diff)
downloadnetsurf-3a9fa29ee53bef70a0e643847acc2fb374501f70.tar.gz
netsurf-3a9fa29ee53bef70a0e643847acc2fb374501f70.tar.bz2
try and improve usage of browser window internals
Diffstat (limited to 'amiga/menu.c')
-rw-r--r--amiga/menu.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/amiga/menu.c b/amiga/menu.c
index c1e863a65..70028af68 100644
--- a/amiga/menu.c
+++ b/amiga/menu.c
@@ -893,8 +893,12 @@ static void ami_menu_item_edit_copy(struct Hook *hook, APTR window, struct Intui
}
else if(bm = content_get_bitmap(gwin->bw->current_content))
{
- bm->url = (char *)nsurl_access(hlcache_handle_get_url(gwin->bw->current_content));
- bm->title = (char *)content_get_title(gwin->bw->current_content);
+ /** @todo It should be checked that the lifetime of
+ * the objects containing the values returned (and the
+ * constness cast away) is safe.
+ */
+ bm->url = (char *)nsurl_access(browser_window_get_url(gwin->bw));
+ bm->title = (char *)browser_window_get_title(gwin->bw);
ami_easy_clipboard_bitmap(bm);
}
#ifdef WITH_NS_SVG