mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-02 17:00:19 +00:00
GDK W32: don't use gdk_drag_find_surface() and gdk_drag_motion()
https://bugzilla.gnome.org/show_bug.cgi?id=773299
This commit is contained in:
parent
ef01e6ee52
commit
b6d3602a35
@ -2040,7 +2040,7 @@ gdk_win32_drag_context_find_surface (GdkDragContext *context,
|
|||||||
a.result = NULL;
|
a.result = NULL;
|
||||||
|
|
||||||
GDK_NOTE (DND,
|
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),
|
(drag_surface ? GDK_SURFACE_HWND (drag_surface) : NULL),
|
||||||
a.x, a.y));
|
a.x, a.y));
|
||||||
|
|
||||||
@ -2068,7 +2068,7 @@ gdk_win32_drag_context_find_surface (GdkDragContext *context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
GDK_NOTE (DND,
|
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),
|
(drag_surface ? GDK_SURFACE_HWND (drag_surface) : NULL),
|
||||||
x_root, y_root,
|
x_root, y_root,
|
||||||
a.result,
|
a.result,
|
||||||
@ -2098,7 +2098,7 @@ gdk_win32_drag_context_drag_motion (GdkDragContext *context,
|
|||||||
|
|
||||||
context->actions = possible_actions;
|
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",
|
" context=%p:{actions=%s,suggested=%s,action=%s}\n",
|
||||||
x_root, y_root,
|
x_root, y_root,
|
||||||
_gdk_win32_drag_protocol_to_string (protocol),
|
_gdk_win32_drag_protocol_to_string (protocol),
|
||||||
@ -2184,7 +2184,7 @@ gdk_win32_drag_context_drag_motion (GdkDragContext *context,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case GDK_DRAG_PROTO_NONE:
|
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;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -2602,11 +2602,11 @@ gdk_drag_update (GdkDragContext *context,
|
|||||||
gdk_drag_get_current_actions (mods, GDK_BUTTON_PRIMARY, win32_context->actions,
|
gdk_drag_get_current_actions (mods, GDK_BUTTON_PRIMARY, win32_context->actions,
|
||||||
&action, &possible_actions);
|
&action, &possible_actions);
|
||||||
|
|
||||||
gdk_drag_find_surface (context,
|
dest_surface = gdk_win32_drag_context_find_surface (context,
|
||||||
win32_context->drag_surface,
|
win32_context->drag_surface,
|
||||||
x_root, y_root, &dest_surface, &protocol);
|
x_root, y_root, &protocol);
|
||||||
|
|
||||||
gdk_drag_motion (context, dest_surface, protocol, x_root, y_root,
|
gdk_win32_drag_context_drag_motion (context, dest_surface, protocol, x_root, y_root,
|
||||||
action, possible_actions, evtime);
|
action, possible_actions, evtime);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2875,8 +2875,6 @@ gdk_win32_drag_context_class_init (GdkWin32DragContextClass *klass)
|
|||||||
|
|
||||||
object_class->finalize = gdk_win32_drag_context_finalize;
|
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_abort = gdk_win32_drag_context_drag_abort;
|
||||||
context_class->drag_drop = gdk_win32_drag_context_drag_drop;
|
context_class->drag_drop = gdk_win32_drag_context_drag_drop;
|
||||||
context_class->drop_status = gdk_win32_drag_context_drop_status;
|
context_class->drop_status = gdk_win32_drag_context_drop_status;
|
||||||
|
Loading…
Reference in New Issue
Block a user