diff options
author | Adrian Lees <adrian@aemulor.com> | 2005-12-10 14:31:33 +0000 |
---|---|---|
committer | Adrian Lees <adrian@aemulor.com> | 2005-12-10 14:31:33 +0000 |
commit | 1efd4796a26a034ac18428798794b2334633b524 (patch) | |
tree | c28655b59dcdf1d9d7f3cb2e8811cb9caba9ebc1 /riscos/gui.c | |
parent | 32602f6ea90a2eb48b778dc5f6b8c170fc62b7c7 (diff) | |
download | netsurf-1efd4796a26a034ac18428798794b2334633b524.tar.gz netsurf-1efd4796a26a034ac18428798794b2334633b524.tar.bz2 |
[project @ 2005-12-10 14:31:32 by adrianl]
ArtWorks support
svn path=/import/netsurf/; revision=1891
Diffstat (limited to 'riscos/gui.c')
-rw-r--r-- | riscos/gui.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/riscos/gui.c b/riscos/gui.c index 1d1845f03..ed46b86eb 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -108,6 +108,9 @@ #ifndef FILETYPE_JPEG #define FILETYPE_JPEG 0xc85 #endif +#ifndef FILETYPE_ARTWORKS +#define FILETYPE_ARTWORKS 0xd94 +#endif int os_version = 0; @@ -197,7 +200,9 @@ struct ro_gui_poll_block *ro_gui_poll_queued_blocks = 0; static void ro_gui_choose_language(void); static void ro_gui_sprites_init(void); +#ifndef ncos static void ro_gui_icon_bar_create(void); +#endif static void ro_gui_signal(int sig); static void ro_gui_cleanup(void); static void ro_gui_handle_event(wimp_event_no event, wimp_block *block); @@ -473,6 +478,7 @@ void ro_gui_sprites_init(void) } +#ifndef ncos /** * Create an iconbar icon. */ @@ -487,6 +493,7 @@ void ro_gui_icon_bar_create(void) { "!netsurf" } } }; wimp_create_icon(&icon); } +#endif /** @@ -1430,6 +1437,7 @@ void ro_msg_dataload(wimp_message *message) case FILETYPE_JPEG: case osfile_TYPE_SPRITE: case osfile_TYPE_TEXT: + case FILETYPE_ARTWORKS: /* display the actual file */ url = ro_path_to_url(message->data.data_xfer.file_name); break; @@ -1717,7 +1725,8 @@ void ro_msg_datasave(wimp_message *message) case FILETYPE_PNG: case FILETYPE_JPEG: case osfile_TYPE_SPRITE: - case osfile_TYPE_TEXT: { + case osfile_TYPE_TEXT: + case FILETYPE_ARTWORKS: { os_error *error; dataxfer->your_ref = dataxfer->my_ref; |