diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2004-07-04 14:59:29 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2004-07-04 14:59:29 +0000 |
commit | 4f664d155989c526aca0ac06b178d315a999b16d (patch) | |
tree | 76dfaf7cd35fd0b3a743d69b00841fda68fecd3e /riscos/menus.c | |
parent | 4613dbb2e68b29784d6b3f829dd973787b3e8888 (diff) | |
download | netsurf-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.c | 9 |
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); } |