summaryrefslogtreecommitdiff
path: root/riscos/menus.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-07-04 14:59:29 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-07-04 14:59:29 +0000
commit4f664d155989c526aca0ac06b178d315a999b16d (patch)
tree76dfaf7cd35fd0b3a743d69b00841fda68fecd3e /riscos/menus.c
parent4613dbb2e68b29784d6b3f829dd973787b3e8888 (diff)
downloadnetsurf-4f664d155989c526aca0ac06b178d315a999b16d.tar.gz
netsurf-4f664d155989c526aca0ac06b178d315a999b16d.tar.bz2
[project @ 2004-07-04 14:59:29 by rjw]
Futher hotlst development. Minor GUI tweaks. svn path=/import/netsurf/; revision=1044
Diffstat (limited to 'riscos/menus.c')
-rw-r--r--riscos/menus.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/riscos/menus.c b/riscos/menus.c
index 580c719a2..3f3e263b7 100644
--- a/riscos/menus.c
+++ b/riscos/menus.c
@@ -16,6 +16,7 @@
#include <string.h>
#include "oslib/os.h"
#include "oslib/wimp.h"
+#include "oslib/wimpspriteop.h"
#include "netsurf/desktop/gui.h"
#include "netsurf/riscos/gui.h"
#include "netsurf/riscos/help.h"
@@ -857,6 +858,14 @@ void ro_gui_menu_prepare_save(struct content *c)
if ((nice = url_nice(c->url)))
name = nice;
+ /* Ensure the correct icon exists
+ */
+ if (xwimpspriteop_read_sprite_info(icon, 0, 0, 0, 0)) {
+ icon = "file_xxx";
+ }
+
+ /* Update the GUI
+ */
ro_gui_set_icon_string(dialog_saveas, ICON_SAVE_ICON, icon);
ro_gui_set_icon_string(dialog_saveas, ICON_SAVE_PATH, name);
}