diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-11-03 23:05:59 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-11-03 23:05:59 +0000 |
commit | bdfedb686bcad6da823c79e879451053f736c8d5 (patch) | |
tree | ac42cce6ff317eeac06ffb39db186c6a4822de06 /riscos/window.c | |
parent | 49ac8c3a94e2e3792bb9de43e3ecde03a17ec4a5 (diff) | |
download | netsurf-bdfedb686bcad6da823c79e879451053f736c8d5.tar.gz netsurf-bdfedb686bcad6da823c79e879451053f736c8d5.tar.bz2 |
replace save_link operation table entry usage of textural url with nsurl
Diffstat (limited to 'riscos/window.c')
-rw-r--r-- | riscos/window.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/riscos/window.c b/riscos/window.c index e247bad5f..f3c92092c 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -1280,14 +1280,12 @@ static bool gui_window_drag_start(struct gui_window *g, gui_drag_type type, * \param url The url of the link * \param title The title of the link */ -static void gui_window_save_link(struct gui_window *g, const char *url, - const char *title) +static nserror +gui_window_save_link(struct gui_window *g, nsurl *url, const char *title) { - nsurl *nurl; - nsurl_create(url, &nurl); - ro_gui_save_prepare(GUI_SAVE_LINK_URL, NULL, NULL, nurl, title); - nsurl_unref(nurl); + ro_gui_save_prepare(GUI_SAVE_LINK_URL, NULL, NULL, url, title); ro_gui_dialog_open_persistent(g->window, dialog_saveas, true); + return NSERROR_OK; } |