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/broadway/gdkprivate-broadway.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/broadway/gdkprivate-broadway.h')
-rw-r--r-- | gdk/broadway/gdkprivate-broadway.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdk/broadway/gdkprivate-broadway.h b/gdk/broadway/gdkprivate-broadway.h index bc40ea9c32..39523a9079 100644 --- a/gdk/broadway/gdkprivate-broadway.h +++ b/gdk/broadway/gdkprivate-broadway.h @@ -47,12 +47,12 @@ void gdk_broadway_window_set_nodes (GdkWindow *window, GPtrArray *node_textures); void _gdk_broadway_window_register_dnd (GdkWindow *window); -GdkDragContext * _gdk_broadway_window_drag_begin (GdkWindow *window, - GdkDevice *device, - GdkContentFormats *formats, - GdkDragAction actions, - gint dx, - gint dy); +GdkDragContext * _gdk_broadway_window_drag_begin (GdkWindow *window, + GdkDevice *device, + GdkContentProvider *content, + GdkDragAction actions, + gint dx, + gint dy); void _gdk_broadway_window_translate (GdkWindow *window, cairo_region_t *area, gint dx, |