summaryrefslogtreecommitdiff
path: root/gdk/gdkcontentformats.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-28 02:02:06 +0100
committerBenjamin Otte <otte@redhat.com>2017-12-03 05:46:48 +0100
commit4e06aaeaa8de2f01e28f68f41c442b6dd66482db (patch)
tree4bd849870a6d43e7835de5eb82f76f732f88cf8a /gdk/gdkcontentformats.h
parentcc078005707b36de996cd57301cbfd8742ac692c (diff)
downloadgtk+-4e06aaeaa8de2f01e28f68f41c442b6dd66482db.tar.gz
gdk: Add gdk_content_formats_new_for_gtype()
Many places create formats for a single tpye, so make it easy for them to get this without having to create a builder first.
Diffstat (limited to 'gdk/gdkcontentformats.h')
-rw-r--r--gdk/gdkcontentformats.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/gdkcontentformats.h b/gdk/gdkcontentformats.h
index e265b6ab88..1e5f7147bb 100644
--- a/gdk/gdkcontentformats.h
+++ b/gdk/gdkcontentformats.h
@@ -39,6 +39,8 @@ GDK_AVAILABLE_IN_3_94
GdkContentFormats * gdk_content_formats_new (const char **mime_types,
guint n_mime_types);
GDK_AVAILABLE_IN_3_94
+GdkContentFormats * gdk_content_formats_new_for_gtype (GType type);
+GDK_AVAILABLE_IN_3_94
GdkContentFormats * gdk_content_formats_ref (GdkContentFormats *formats);
GDK_AVAILABLE_IN_3_94
void gdk_content_formats_unref (GdkContentFormats *formats);