dnd: Make gdk_drag_context_set_device() private

There's no need to call it from GTK anymore, because we pass the device
to gdk_drag_begin().
This commit is contained in:
Benjamin Otte 2017-12-11 00:17:36 +01:00
parent 33a634be33
commit a7c3c794df
3 changed files with 2 additions and 5 deletions

View File

@ -86,9 +86,6 @@ GType gdk_drag_context_get_type (void) G_GNUC_CONST;
GDK_AVAILABLE_IN_3_94
GdkDisplay * gdk_drag_context_get_display (GdkDragContext *context);
GDK_AVAILABLE_IN_ALL
void gdk_drag_context_set_device (GdkDragContext *context,
GdkDevice *device);
GDK_AVAILABLE_IN_ALL
GdkDevice * gdk_drag_context_get_device (GdkDragContext *context);
GDK_AVAILABLE_IN_3_94

View File

@ -151,6 +151,8 @@ struct _GdkDragContext {
GList * gdk_drag_context_list (void);
void gdk_drag_context_set_device (GdkDragContext *context,
GdkDevice *device);
void gdk_drag_context_set_cursor (GdkDragContext *context,
GdkCursor *cursor);
void gdk_drag_context_cancel (GdkDragContext *context,

View File

@ -1122,8 +1122,6 @@ gtk_drag_begin_internal (GtkWidget *widget,
context = gdk_drag_begin (ipc_window, pointer, target_list, start_x, start_y);
gdk_drag_context_set_device (context, pointer);
if (!gdk_drag_context_manage_dnd (context, ipc_window, actions))
{
gtk_drag_release_ipc_widget (ipc_widget);