From 185d0343236afbd1d900339b45c02985bd2d4ecb Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 12 Nov 2019 22:48:00 +0000 Subject: make mouse track and mouse action content handlers return an error code --- content/handlers/text/textplain.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'content/handlers/text') diff --git a/content/handlers/text/textplain.c b/content/handlers/text/textplain.c index e5cd45143..86122ff73 100644 --- a/content/handlers/text/textplain.c +++ b/content/handlers/text/textplain.c @@ -611,7 +611,7 @@ static content_type textplain_content_type(void) * \param x coordinate of mouse * \param y coordinate of mouse */ -static void +static nserror textplain_mouse_action(struct content *c, struct browser_window *bw, browser_mouse_state mouse, @@ -647,6 +647,8 @@ textplain_mouse_action(struct content *c, msg_data.pointer = pointer; content_broadcast(c, CONTENT_MSG_POINTER, &msg_data); + + return NSERROR_OK; } @@ -659,7 +661,7 @@ textplain_mouse_action(struct content *c, * \param x coordinate of mouse * \param y coordinate of mouse */ -static void +static nserror textplain_mouse_track(struct content *c, struct browser_window *bw, browser_mouse_state mouse, @@ -697,6 +699,8 @@ textplain_mouse_track(struct content *c, textplain_mouse_action(c, bw, mouse, x, y); break; } + + return NSERROR_OK; } -- cgit v1.2.3