diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-01-11 06:09:58 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-01-11 06:09:58 +0000 |
commit | f5daecf353714d2d7d1dd202a476922d22c895e7 (patch) | |
tree | 55c458c40e95d7981cd8cad5941f705efbf10bf4 /gdk/gdkcontentproviderimpl.h | |
parent | 186b783f9d3d39b37f61defcf2be4b020e90e6f8 (diff) | |
parent | b76940bab5b82914617424a1063c6942e4ad143d (diff) | |
download | gtk+-f5daecf353714d2d7d1dd202a476922d22c895e7.tar.gz |
Merge branch 'dnd-gestures-2' into 'master'
Add new dnd api
See merge request GNOME/gtk!1278
Diffstat (limited to 'gdk/gdkcontentproviderimpl.h')
-rw-r--r-- | gdk/gdkcontentproviderimpl.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdk/gdkcontentproviderimpl.h b/gdk/gdkcontentproviderimpl.h index 1c41360243..19ac6969e1 100644 --- a/gdk/gdkcontentproviderimpl.h +++ b/gdk/gdkcontentproviderimpl.h @@ -35,6 +35,21 @@ GDK_AVAILABLE_IN_ALL GdkContentProvider * gdk_content_provider_new_for_bytes (const char *mime_type, GBytes *bytes); +typedef void (*GdkContentProviderGetValueFunc) (GValue *value, + gpointer data); + +GDK_AVAILABLE_IN_ALL +GdkContentProvider * gdk_content_provider_new_with_callback (GType type, + GdkContentProviderGetValueFunc func, + gpointer data); + +typedef GBytes * (*GdkContentProviderGetBytesFunc) (const char *mime_type, + gpointer data); + +GDK_AVAILABLE_IN_ALL +GdkContentProvider * gdk_content_provider_new_with_formats (GdkContentFormats *formats, + GdkContentProviderGetBytesFunc func, + gpointer data); G_END_DECLS |