summaryrefslogtreecommitdiff
path: root/riscos/artworks.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2007-03-11 22:08:57 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2007-03-11 22:08:57 +0000
commit9cf51227979c84a9ed74c339290c3f65f0d58c4f (patch)
treea0c2a9fd6b328eca1dfbdf17989b5ef175427124 /riscos/artworks.c
parent58c217cbeeca8bac6c5edd3d156b1f5bbefed3d3 (diff)
downloadnetsurf-9cf51227979c84a9ed74c339290c3f65f0d58c4f.tar.gz
netsurf-9cf51227979c84a9ed74c339290c3f65f0d58c4f.tar.bz2
Content handlers should not call warn_user - they should broadcast the
error using content_broadcast and leave it to the content owner(s) to decide what to do about it. Only use warn_user for top-level contents. svn path=/trunk/netsurf/; revision=3204
Diffstat (limited to 'riscos/artworks.c')
-rw-r--r--riscos/artworks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/riscos/artworks.c b/riscos/artworks.c
index 6a52c5512..9cc219de1 100644
--- a/riscos/artworks.c
+++ b/riscos/artworks.c
@@ -168,7 +168,8 @@ bool artworks_convert(struct content *c, int width, int height)
c->data.artworks.block = malloc(INITIAL_BLOCK_SIZE);
if (!c->data.artworks.block) {
LOG(("failed to create block for ArtworksRenderer"));
- warn_user("NoMemory", 0);
+ msg_data.error = messages_get("NoMemory");
+ content_broadcast(c, CONTENT_MSG_ERROR, msg_data);
return false;
}