From b6d3602a35d9215f05d41b20ad1c6efdd896ecb7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?utf8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Sat, 24 Mar 2018 19:30:22 +0000 Subject: [PATCH] GDK W32: don't use gdk_drag_find_surface() and gdk_drag_motion() https://bugzilla.gnome.org/show_bug.cgi?id=773299 --- gdk/win32/gdkdrag-win32.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/gdk/win32/gdkdrag-win32.c b/gdk/win32/gdkdrag-win32.c index 6706bafcff..887b132a5b 100644 --- a/gdk/win32/gdkdrag-win32.c +++ b/gdk/win32/gdkdrag-win32.c @@ -2040,7 +2040,7 @@ gdk_win32_drag_context_find_surface (GdkDragContext *context, a.result = NULL; GDK_NOTE (DND, - g_print ("gdk_drag_find_surface_real: %p %+d%+d\n", + g_print ("gdk_win32_drag_context_find_surface: %p %+d%+d\n", (drag_surface ? GDK_SURFACE_HWND (drag_surface) : NULL), a.x, a.y)); @@ -2068,7 +2068,7 @@ gdk_win32_drag_context_find_surface (GdkDragContext *context, } GDK_NOTE (DND, - g_print ("gdk_drag_find_surface: %p %+d%+d: %p: %p %s\n", + g_print ("gdk_win32_drag_context_find_surface: %p %+d%+d: %p: %p %s\n", (drag_surface ? GDK_SURFACE_HWND (drag_surface) : NULL), x_root, y_root, a.result, @@ -2098,7 +2098,7 @@ gdk_win32_drag_context_drag_motion (GdkDragContext *context, context->actions = possible_actions; - GDK_NOTE (DND, g_print ("gdk_drag_motion: @ %+d:%+d %s suggested=%s, possible=%s\n" + GDK_NOTE (DND, g_print ("gdk_win32_drag_context_drag_motion: @ %+d:%+d %s suggested=%s, possible=%s\n" " context=%p:{actions=%s,suggested=%s,action=%s}\n", x_root, y_root, _gdk_win32_drag_protocol_to_string (protocol), @@ -2184,7 +2184,7 @@ gdk_win32_drag_context_drag_motion (GdkDragContext *context, break; case GDK_DRAG_PROTO_NONE: - g_warning ("GDK_DRAG_PROTO_NONE is not valid in gdk_drag_motion()"); + g_warning ("GDK_DRAG_PROTO_NONE is not valid in gdk_win32_drag_context_drag_motion()"); break; default: @@ -2602,12 +2602,12 @@ gdk_drag_update (GdkDragContext *context, gdk_drag_get_current_actions (mods, GDK_BUTTON_PRIMARY, win32_context->actions, &action, &possible_actions); - gdk_drag_find_surface (context, - win32_context->drag_surface, - x_root, y_root, &dest_surface, &protocol); + dest_surface = gdk_win32_drag_context_find_surface (context, + win32_context->drag_surface, + x_root, y_root, &protocol); - gdk_drag_motion (context, dest_surface, protocol, x_root, y_root, - action, possible_actions, evtime); + gdk_win32_drag_context_drag_motion (context, dest_surface, protocol, x_root, y_root, + action, possible_actions, evtime); } static gboolean @@ -2875,8 +2875,6 @@ gdk_win32_drag_context_class_init (GdkWin32DragContextClass *klass) object_class->finalize = gdk_win32_drag_context_finalize; - context_class->find_surface = gdk_win32_drag_context_find_surface; - context_class->drag_motion = gdk_win32_drag_context_drag_motion; context_class->drag_abort = gdk_win32_drag_context_drag_abort; context_class->drag_drop = gdk_win32_drag_context_drag_drop; context_class->drop_status = gdk_win32_drag_context_drop_status; -- 2.30.2