diff options
author | Benjamin Otte <otte@redhat.com> | 2017-12-13 15:03:53 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-12-13 15:05:27 +0100 |
commit | 8648d5409ea53ef4bb6ad9b7940c32d663af41e5 (patch) | |
tree | ff4d72ef4a6fd0fab462918a6b4896a884841a2a /gdk/wayland/gdkprivate-wayland.h | |
parent | c30cd885dd03d745bcb73a2bc5d20129e5cb6e36 (diff) | |
download | gtk+-8648d5409ea53ef4bb6ad9b7940c32d663af41e5.tar.gz |
dnd: Pass content to gdk_drag_begin()
Instead of just passing the GdkContentFormats, we are now passing the
GdkContentProvider to gdk_drag_begin().
This means that GDK itself can now query the data from the provider
directly instead of having to send selection events.
Use this to provide the private API gdk_drag_context_write() that allows
backends to pass an output stream that this data will be written to.
Implement this as the mechanism for providing drag data on Wayland.
And to make this all work, implement a content provider named
GtkDragContent that is implemented by reverting to the old DND
drag-data-get machinery inside GTK, so for widgets everything works just
like before.
Diffstat (limited to 'gdk/wayland/gdkprivate-wayland.h')
-rw-r--r-- | gdk/wayland/gdkprivate-wayland.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/wayland/gdkprivate-wayland.h b/gdk/wayland/gdkprivate-wayland.h index 6b6e356a11..a6ee0c0cdb 100644 --- a/gdk/wayland/gdkprivate-wayland.h +++ b/gdk/wayland/gdkprivate-wayland.h @@ -93,7 +93,7 @@ void gdk_wayland_window_sync (GdkWindow *window); void _gdk_wayland_window_register_dnd (GdkWindow *window); GdkDragContext *_gdk_wayland_window_drag_begin (GdkWindow *window, GdkDevice *device, - GdkContentFormats *formats, + GdkContentProvider *content, GdkDragAction actions, gint dx, gint dy); |