summaryrefslogtreecommitdiff
path: root/content
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 /content
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 'content')
-rw-r--r--content/content.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/content/content.c b/content/content.c
index 446f326db..93d37d799 100644
--- a/content/content.c
+++ b/content/content.c
@@ -535,7 +535,6 @@ bool content_set_type(struct content *c, content_type type,
c->status = CONTENT_STATUS_ERROR;
msg_data.error = messages_get("NoMemory");
content_broadcast(c, CONTENT_MSG_ERROR, msg_data);
- warn_user("NoMemory", 0);
return false;
}
@@ -556,7 +555,6 @@ bool content_set_type(struct content *c, content_type type,
msg_data.error = messages_get("NoMemory");
content_broadcast(c, CONTENT_MSG_ERROR,
msg_data);
- warn_user("NoMemory", 0);
return false;
}
@@ -574,7 +572,6 @@ bool content_set_type(struct content *c, content_type type,
msg_data.error = messages_get("NoMemory");
content_broadcast(c, CONTENT_MSG_ERROR,
msg_data);
- warn_user("NoMemory", 0);
return false;
}
content_remove_user(c, callback, p1, p2);
@@ -682,7 +679,6 @@ bool content_process_data(struct content *c, const char *data,
c->status = CONTENT_STATUS_ERROR;
msg_data.error = messages_get("NoMemory");
content_broadcast(c, CONTENT_MSG_ERROR, msg_data);
- warn_user("NoMemory", 0);
return false;
}
c->source_data = source_data;