diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2006-07-04 19:56:37 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2006-07-04 19:56:37 +0000 |
commit | 667c3b67304906e281faa7dbde36d454bddce576 (patch) | |
tree | 576427deb822d0276dfcdf1a83ed4476264b9a70 /riscos/window.c | |
parent | ac0d20fdea64742ae13885e862e611095104aa11 (diff) | |
download | netsurf-667c3b67304906e281faa7dbde36d454bddce576.tar.gz netsurf-667c3b67304906e281faa7dbde36d454bddce576.tar.bz2 |
Fix 1516353 and implement 1352354
svn path=/trunk/netsurf/; revision=2711
Diffstat (limited to 'riscos/window.c')
-rw-r--r-- | riscos/window.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/riscos/window.c b/riscos/window.c index f92159115..34ba908a5 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -46,6 +46,7 @@ #include "netsurf/riscos/gui.h" #include "netsurf/riscos/menus.h" #include "netsurf/riscos/options.h" +#include "netsurf/riscos/save.h" #include "netsurf/riscos/theme.h" #include "netsurf/riscos/thumbnail.h" #include "netsurf/riscos/ucstables.h" @@ -383,6 +384,22 @@ void gui_window_set_title(struct gui_window *g, const char *title) /** + * Save the specified content as a link. + * + * \param g gui_window containing the content + * \param c the content to save + */ + +void gui_window_save_as_link(struct gui_window *g, struct content *c) +{ + if (!c) + return; + ro_gui_save_prepare(GUI_SAVE_LINK_URL, c); + ro_gui_dialog_open_persistent(g->window, dialog_saveas, true); +} + + +/** * Force a redraw of part of the contents of a browser window. * * \param g gui_window to redraw |