[gtk+] dnd: Make gdk_drag_context_set_device() private
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] dnd: Make gdk_drag_context_set_device() private
- Date: Mon, 11 Dec 2017 00:07:58 +0000 (UTC)
commit a7c3c794df0fa9eee47fea499f7daef48a05c167
Author: Benjamin Otte <otte redhat com>
Date: Mon Dec 11 00:17:36 2017 +0100
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().
gdk/gdkdnd.h | 3 ---
gdk/gdkdndprivate.h | 2 ++
gtk/gtkdnd.c | 2 --
3 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gdk/gdkdnd.h b/gdk/gdkdnd.h
index ccedece..f830fdc 100644
--- a/gdk/gdkdnd.h
+++ b/gdk/gdkdnd.h
@@ -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
diff --git a/gdk/gdkdndprivate.h b/gdk/gdkdndprivate.h
index e44e49b..16ad733 100644
--- a/gdk/gdkdndprivate.h
+++ b/gdk/gdkdndprivate.h
@@ -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,
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 08c1117..e613a5c 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]