summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-05-10 11:54:26 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-05-10 11:54:26 +0100
commit9644d0594c1dfcc6e104754793a75d23c7a6840e (patch)
tree03d1cec60e568f35ffd04d5266cac1d74ec8e0e7 /riscos
parentd2d04824cfc088cf6776fe2c2e2abdb953dfe006 (diff)
downloadnetsurf-9644d0594c1dfcc6e104754793a75d23c7a6840e.tar.gz
netsurf-9644d0594c1dfcc6e104754793a75d23c7a6840e.tar.bz2
Remove struct selection from gui_drag_save_selection, so gui.h doesn't need it now.
Diffstat (limited to 'riscos')
-rw-r--r--riscos/save.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/riscos/save.c b/riscos/save.c
index 549a2ab3e..47006d287 100644
--- a/riscos/save.c
+++ b/riscos/save.c
@@ -395,7 +395,7 @@ void gui_drag_save_object(gui_save_type save_type, hlcache_handle *c,
* \param g gui window
*/
-void gui_drag_save_selection(struct selection *s, struct gui_window *g)
+void gui_drag_save_selection(struct gui_window *g, const char *selection)
{
wimp_pointer pointer;
char icon_buf[20];
@@ -421,7 +421,10 @@ void gui_drag_save_selection(struct selection *s, struct gui_window *g)
if (gui_save_selection == NULL)
free(gui_save_selection);
- gui_save_selection = selection_get_copy(s);
+ if (selection == NULL)
+ gui_save_selection = strdup("");
+ else
+ gui_save_selection = strdup(selection);
ro_gui_save_set_state(NULL, GUI_SAVE_TEXT_SELECTION, NULL,
save_leafname, LEAFNAME_MAX,