summaryrefslogtreecommitdiff
path: root/content/handlers/text
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-11-12 22:48:00 +0000
committerVincent Sanders <vince@kyllikki.org>2019-11-12 22:48:00 +0000
commit185d0343236afbd1d900339b45c02985bd2d4ecb (patch)
tree9515af037dae2246ab3b7e822ae3aeee09b864ac /content/handlers/text
parent074407d251dfb93bdd663fe0d26079c902bc3b12 (diff)
downloadnetsurf-185d0343236afbd1d900339b45c02985bd2d4ecb.tar.gz
netsurf-185d0343236afbd1d900339b45c02985bd2d4ecb.tar.bz2
make mouse track and mouse action content handlers return an error code
Diffstat (limited to 'content/handlers/text')
-rw-r--r--content/handlers/text/textplain.c8
1 files changed, 6 insertions, 2 deletions
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;
}