summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2018-03-24 19:30:22 +0000
committerРуслан Ижбулатов <lrn1986@gmail.com>2018-03-29 17:43:57 +0000
commitb6d3602a35d9215f05d41b20ad1c6efdd896ecb7 (patch)
tree268bb325513b794126926547c6408e05b5e3abdf /gdk
parentef01e6ee52aa3b0f4776bdeb524d0967a0f3dd0f (diff)
downloadgtk+-b6d3602a35d9215f05d41b20ad1c6efdd896ecb7.tar.gz
GDK W32: don't use gdk_drag_find_surface() and gdk_drag_motion()
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Diffstat (limited to 'gdk')
-rw-r--r--gdk/win32/gdkdrag-win32.c20
1 files 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;