diff options
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 |