diff options
author | Steve Fryatt <stevef@netsurf-browser.org> | 2013-09-08 11:55:21 +0100 |
---|---|---|
committer | Steve Fryatt <stevef@netsurf-browser.org> | 2013-09-08 11:55:21 +0100 |
commit | a00e0f91c7ccb27108cc396ca8afa3207935de4c (patch) | |
tree | dfe47712132b8f26f46fe319f3222b44c5e2e060 /riscos/url_complete.c | |
parent | e87596ad1f7755c50f7a00edc85e66908ad1ba10 (diff) | |
download | netsurf-a00e0f91c7ccb27108cc396ca8afa3207935de4c.tar.gz netsurf-a00e0f91c7ccb27108cc396ca8afa3207935de4c.tar.bz2 |
Move all mouse tracking into ro_mouse module.
Add Pointer Entering Window events to wimp_event module and add handlers to all modules requiring mouse tracking.
Updated: Treeview, URL Complete, History and GUI Window.
Delete all handling for Pointer Entering/Leaving from ro_gui.
Diffstat (limited to 'riscos/url_complete.c')
-rw-r--r-- | riscos/url_complete.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/riscos/url_complete.c b/riscos/url_complete.c index e26cb6556..01774f62f 100644 --- a/riscos/url_complete.c +++ b/riscos/url_complete.c @@ -30,6 +30,7 @@ #include "utils/log.h" #include "riscos/global_history.h" #include "riscos/gui.h" +#include "riscos/mouse.h" #include "utils/nsoption.h" #include "riscos/toolbar.h" #include "riscos/url_complete.h" @@ -61,6 +62,7 @@ static int mouse_y; static bool url_complete_callback(nsurl *url, const struct url_data *data); +static void ro_gui_url_complete_mouse_at(wimp_pointer *pointer, void *data); /* This is an exported interface documented in url_complete.h */ @@ -624,7 +626,20 @@ void ro_gui_url_complete_redraw(wimp_draw *redraw) /* This is an exported interface documented in url_complete.h */ -void ro_gui_url_complete_mouse_at(wimp_pointer *pointer) +void ro_gui_url_complete_entering(wimp_entering *entering) +{ + ro_mouse_track_start(NULL, ro_gui_url_complete_mouse_at, NULL); +} + + +/** + * Handle mouse movement over the URL completion window. + * + * \param *pointer The pointer state + * \param *data NULL data pointer expected by mouse tracker + */ + +void ro_gui_url_complete_mouse_at(wimp_pointer *pointer, void *data) { wimp_mouse_state current; |