diff options
author | James Bursa <james@netsurf-browser.org> | 2004-07-11 13:05:38 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-07-11 13:05:38 +0000 |
commit | 89a23311ea1d5f2ee30abb9f459dd515c5411476 (patch) | |
tree | 0f6a8886243c203aa1dde70e8a26efb920fedcb3 /riscos/download.c | |
parent | 02559e8cbd00204cd3e0e9bfc1d25335d611c8d6 (diff) | |
download | netsurf-89a23311ea1d5f2ee30abb9f459dd515c5411476.tar.gz netsurf-89a23311ea1d5f2ee30abb9f459dd515c5411476.tar.bz2 |
[project @ 2004-07-11 13:05:38 by bursa]
Clean up save box code by implementing ro_gui_save_open().
svn path=/import/netsurf/; revision=1070
Diffstat (limited to 'riscos/download.c')
-rw-r--r-- | riscos/download.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/riscos/download.c b/riscos/download.c index b1b6d7a7b..591ddce14 100644 --- a/riscos/download.c +++ b/riscos/download.c @@ -31,6 +31,7 @@ #include "netsurf/content/fetch.h" #include "netsurf/desktop/gui.h" #include "netsurf/riscos/gui.h" +#include "netsurf/riscos/wimp.h" #include "netsurf/utils/log.h" #include "netsurf/utils/messages.h" #include "netsurf/utils/url.h" @@ -181,15 +182,8 @@ struct gui_download_window *gui_download_window_create(const char *url, size = sizeof dw->status; sprintf(dw->sprite_name, "file_%.3x", dw->file_type); - error = xwimpspriteop_select_sprite(dw->sprite_name, 0); - if (error) { - if (error->errnum != error_SPRITE_OP_DOESNT_EXIST) { - LOG(("xwimpspriteop_select_sprite: 0x%x: %s", - error->errnum, error->errmess)); - warn_user("MiscError", error->errmess); - } + if (!ro_gui_wimp_sprite_exists(dw->sprite_name)) strcpy(dw->sprite_name, "file_xxx"); - } download_template->icons[ICON_DOWNLOAD_ICON].data.indirected_sprite.id = (osspriteop_id) dw->sprite_name; |