summaryrefslogtreecommitdiff
path: root/render/textplain.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-08-26 15:50:03 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2017-08-26 15:50:03 +0100
commitd70beb28db6f978ae9fc674640f3101e20c05bb8 (patch)
tree44eb1e63f612675d75bceebbb85fcebb44588d49 /render/textplain.c
parentaedd9b55132bb48f6d25ae4c080dc0ce71efb44d (diff)
downloadnetsurf-d70beb28db6f978ae9fc674640f3101e20c05bb8.tar.gz
netsurf-d70beb28db6f978ae9fc674640f3101e20c05bb8.tar.bz2
Content API: Make content_broadcast take pointer to content_msg_data.
Diffstat (limited to 'render/textplain.c')
-rw-r--r--render/textplain.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/render/textplain.c b/render/textplain.c
index 5d28d9c54..35e3e4ba4 100644
--- a/render/textplain.c
+++ b/render/textplain.c
@@ -186,7 +186,7 @@ textplain_create_internal(textplain_content *c, lwc_string *encoding)
no_memory:
msg_data.error = messages_get("NoMemory");
- content_broadcast(&c->base, CONTENT_MSG_ERROR, msg_data);
+ content_broadcast(&c->base, CONTENT_MSG_ERROR, &msg_data);
return NSERROR_NOMEM;
}
@@ -363,7 +363,7 @@ textplain_process_data(struct content *c, const char *data, unsigned int size)
no_memory:
msg_data.error = messages_get("NoMemory");
- content_broadcast(c, CONTENT_MSG_ERROR, msg_data);
+ content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
return false;
}
@@ -647,10 +647,10 @@ textplain_mouse_action(struct content *c,
}
msg_data.explicit_status_text = status;
- content_broadcast(c, CONTENT_MSG_STATUS, msg_data);
+ content_broadcast(c, CONTENT_MSG_STATUS, &msg_data);
msg_data.pointer = pointer;
- content_broadcast(c, CONTENT_MSG_POINTER, msg_data);
+ content_broadcast(c, CONTENT_MSG_POINTER, &msg_data);
}