diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-11-21 14:30:09 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-11-21 14:30:09 +0000 |
commit | b4e044f6c9769cb3538f1fb3accf7ad9671e1978 (patch) | |
tree | 046fbab61aa839c7801f326edb3172dbba0752f3 /amiga/context_menu.c | |
parent | 3b686eaccc2acaa50e35806ac095723990ba50a5 (diff) | |
download | netsurf-b4e044f6c9769cb3538f1fb3accf7ad9671e1978.tar.gz netsurf-b4e044f6c9769cb3538f1fb3accf7ad9671e1978.tar.bz2 |
Use browser_window_get_url() instead of getting URL from current content.
Diffstat (limited to 'amiga/context_menu.c')
-rw-r--r-- | amiga/context_menu.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/amiga/context_menu.c b/amiga/context_menu.c index e5743dc62..e7cb07c49 100644 --- a/amiga/context_menu.c +++ b/amiga/context_menu.c @@ -769,7 +769,7 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved if (error == NSERROR_OK) { error = browser_window_create(BW_CREATE_CLONE | BW_CREATE_HISTORY, url, - hlcache_handle_get_url(gwin->gw->bw->current_content), + browser_window_get_url(gwin->gw->bw), gwin->gw->bw, &bw); nsurl_unref(url); @@ -787,7 +787,7 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved if (error == NSERROR_OK) { error = browser_window_create(BW_CREATE_CLONE | BW_CREATE_HISTORY | BW_CREATE_TAB, url, - hlcache_handle_get_url(gwin->gw->bw->current_content), + browser_window_get_url(gwin->gw->bw), gwin->gw->bw, &bw); nsurl_unref(url); @@ -807,7 +807,7 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved } else { browser_window_navigate(gwin->gw->bw, url, - hlcache_handle_get_url(gwin->gw->bw->current_content), + browser_window_get_url(gwin->gw->bw), BW_NAVIGATE_DOWNLOAD, NULL, NULL, @@ -821,7 +821,7 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved case CMID_SHOWOBJ: browser_window_navigate(gwin->gw->bw, hlcache_handle_get_url(userdata), - hlcache_handle_get_url(gwin->gw->bw->current_content), + browser_window_get_url(gwin->gw->bw), BW_NAVIGATE_HISTORY, NULL, NULL, @@ -837,7 +837,7 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved } else { browser_window_navigate(gwin->gw->bw, url, - hlcache_handle_get_url(gwin->gw->bw->current_content), + browser_window_get_url(gwin->gw->bw), BW_NAVIGATE_HISTORY, NULL, NULL, |