summaryrefslogtreecommitdiff
path: root/render/textplain.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-08-19 11:35:32 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-08-19 11:35:32 +0100
commit47db5546c5ea409703d9dfe885808647e89f917e (patch)
tree846697d3c520b2cb90f893c254ea4680277bb7e1 /render/textplain.c
parentd878ea4fb91143941ed84a9d300e4bb34731e41f (diff)
downloadnetsurf-47db5546c5ea409703d9dfe885808647e89f917e.tar.gz
netsurf-47db5546c5ea409703d9dfe885808647e89f917e.tar.bz2
Use content msg system for status text, and don't pass internal status message as an explict message.
Diffstat (limited to 'render/textplain.c')
-rw-r--r--render/textplain.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/render/textplain.c b/render/textplain.c
index a8fd8a0f6..ec4d486e5 100644
--- a/render/textplain.c
+++ b/render/textplain.c
@@ -691,24 +691,16 @@ void textplain_mouse_action(struct content *c, struct browser_window *bw,
DRAGGING_SELECTION, NULL);
status = messages_get("Selecting");
}
- else
- status = content__get_status_message(c);
- }
- else {
- if (bw->loading_content)
- status = content_get_status_message(
- bw->loading_content);
- else
- status = content__get_status_message(c);
+ } else {
if (mouse & (BROWSER_MOUSE_DRAG_1 | BROWSER_MOUSE_DRAG_2)) {
browser_window_page_drag_start(bw, x, y);
pointer = BROWSER_POINTER_MOVE;
}
}
- if (status != NULL)
- browser_window_set_status(bw, status);
+ msg_data.explicit_status_text = status;
+ content_broadcast(c, CONTENT_MSG_STATUS, msg_data);
msg_data.pointer = pointer;
content_broadcast(c, CONTENT_MSG_POINTER, msg_data);