diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-02-18 00:38:55 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-02-21 00:51:03 -0500 |
commit | 7bb6abb1d4e4616521fbcfe2d080f9b2c96afb0e (patch) | |
tree | 88e1fe091ad232836bb6ae938bb7f06c01c3731c /gdk/win32/gdkevents-win32.c | |
parent | de91e10a1b2b46e6e576770988d5a013e2ee5b80 (diff) | |
download | gtk+-7bb6abb1d4e4616521fbcfe2d080f9b2c96afb0e.tar.gz |
win32: Remove some leftover event struct access
And leftover old event api calls.
Diffstat (limited to 'gdk/win32/gdkevents-win32.c')
-rw-r--r-- | gdk/win32/gdkevents-win32.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index 8980d0de26..50dcc2fde1 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -892,7 +892,6 @@ fixup_event (GdkEvent *event) (event->any.type == GDK_LEAVE_NOTIFY)) && (event->crossing.child_surface != NULL)) g_object_ref (event->crossing.child_surface); - event->any.send_event = InSendMessage (); } void @@ -1086,7 +1085,7 @@ send_crossing_event (GdkDisplay *display, window, device_manager->core_pointer, device_manager->system_pointer, - _gdk_win32_next_tick (time_), + _gdk_win32_get_next_tick (time_), mask, pt.x / impl->surface_scale, pt.y / impl->surface_scale, @@ -2794,14 +2793,14 @@ gdk_event_translate (MSG *msg, ? GDK_SCROLL_RIGHT : GDK_SCROLL_LEFT; - event = gdk_event_scroll_new (window, - device_manager_win32->core_pointer, - device_manager_win32->system_pointer, - NULL, - _gdk_win32_get_next_tick (msg->time), - build_pointer_event_state (msg), - direction, - TRUE); + event = gdk_event_discrete_scroll_new (window, + device_manager_win32->core_pointer, + device_manager_win32->system_pointer, + NULL, + _gdk_win32_get_next_tick (msg->time), + build_pointer_event_state (msg), + direction, + TRUE); _gdk_win32_append_event (event); |