summaryrefslogtreecommitdiff
path: root/riscos/save.c
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2008-08-05 01:23:04 +0000
committerJohn Tytgat <joty@netsurf-browser.org>2008-08-05 01:23:04 +0000
commitc40fc354b3783502ce0c9be1629380acb10c0570 (patch)
tree27076646b9e6041439a5e082b1cb99d67045b0ac /riscos/save.c
parent039362166c2d31dd23931332b6af94bf274d2635 (diff)
downloadnetsurf-c40fc354b3783502ce0c9be1629380acb10c0570.tar.gz
netsurf-c40fc354b3783502ce0c9be1629380acb10c0570.tar.bz2
- Teached ro_gui_set_icon_string() and ro_gui_get_icon_string() about the difference between direct and indirect icons.
- ro_gui_get_icon_string(): - Constify return value of ro_gui_get_icon_string() as you really shouldn't change its contents via this pointer. - Enfore NUL string termination as return value (instead of other control char termination) - Merged ro_gui_set_icon_string_le() into ro_gui_set_icon_string() by adding ro_gui_set_icon_string() and extra to_utf8 parameter. - ro_gui_strncmp(): added svn path=/trunk/netsurf/; revision=4907
Diffstat (limited to 'riscos/save.c')
-rw-r--r--riscos/save.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/riscos/save.c b/riscos/save.c
index bdaf92615..bb209d015 100644
--- a/riscos/save.c
+++ b/riscos/save.c
@@ -221,7 +221,7 @@ void ro_gui_save_prepare(gui_save_type save_type, struct content *c)
ro_gui_set_icon_sprite(dialog_saveas, ICON_SAVE_ICON, saveas_area,
icon_buf);
- ro_gui_set_icon_string(dialog_saveas, ICON_SAVE_PATH, name_buf);
+ ro_gui_set_icon_string(dialog_saveas, ICON_SAVE_PATH, name_buf, true);
ro_gui_wimp_event_memorise(dialog_saveas);
}
@@ -250,7 +250,7 @@ void ro_gui_save_start_drag(wimp_pointer *pointer)
*/
bool ro_gui_save_ok(wimp_w w)
{
- char *name = ro_gui_get_icon_string(w, ICON_SAVE_PATH);
+ const char *name = ro_gui_get_icon_string(w, ICON_SAVE_PATH);
char path[256];
if (!strrchr(name, '.')) {
@@ -602,7 +602,8 @@ void ro_gui_save_datasave_ack(wimp_message *message)
}
if (saving_from_dialog)
- ro_gui_set_icon_string(gui_save_sourcew, ICON_SAVE_PATH, path);
+ ro_gui_set_icon_string(gui_save_sourcew, ICON_SAVE_PATH,
+ path, true);
if (ro_gui_save_content(c, path)) {
os_error *error;