summaryrefslogtreecommitdiff
path: root/gdk/gdkdndprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-12-10 01:05:37 +0100
committerBenjamin Otte <otte@redhat.com>2017-12-10 01:09:14 +0100
commit803cbd576f6597f4b851c6f1b7ded98691525e5a (patch)
tree37bdd913a246fe8d247548d4a97b74ff289630b8 /gdk/gdkdndprivate.h
parent963264a73af03606a08d85be9e4459bb9eaded14 (diff)
downloadgtk+-803cbd576f6597f4b851c6f1b7ded98691525e5a.tar.gz
dnd: Introduce gdk_drop_read_async() and use it
This is the replacement for selection usage. Backend implementations for X11 (missing support for backwards compat formats like COMPOUND_TEXT) and Wayland are included. GTK code should be adapted to use gdk_drop_read_*() functions instead of gtk_drag_get_data().
Diffstat (limited to 'gdk/gdkdndprivate.h')
-rw-r--r--gdk/gdkdndprivate.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdk/gdkdndprivate.h b/gdk/gdkdndprivate.h
index 78ae19b4e3..e44e49bfe8 100644
--- a/gdk/gdkdndprivate.h
+++ b/gdk/gdkdndprivate.h
@@ -87,6 +87,16 @@ struct _GdkDragContextClass {
void (*drop_finish) (GdkDragContext *context,
gboolean success,
guint32 time_);
+ void (* read_async) (GdkDragContext *context,
+ GdkContentFormats *formats,
+ int io_priority,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ GInputStream * (* read_finish) (GdkDragContext *context,
+ const char **out_mime_type,
+ GAsyncResult *result,
+ GError **error);
gboolean (*drop_status) (GdkDragContext *context);
GdkWindow* (*get_drag_window) (GdkDragContext *context);
void (*set_hotspot) (GdkDragContext *context,