diff options
author | Benjamin Otte <otte@redhat.com> | 2017-11-24 11:34:19 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-12-03 05:46:47 +0100 |
commit | 7426f1a16b7cbc14cbc453852f883a20d2575000 (patch) | |
tree | 5a9d044da04bb42753158c0071b86dcfcb94fd46 /gdk/gdkcontentformats.h | |
parent | 25c389583632f4b0ea408457fb777475819989bd (diff) | |
download | gtk+-7426f1a16b7cbc14cbc453852f883a20d2575000.tar.gz |
gdkcontentformats: Change the matching API
Instead of having just one function that has the gtype and mime type as
out arguments, have 3 functions: 1 that finds any match, 1 that finds a
GType match and one for a mime type match.
This makes the API way more convenient to use.
Diffstat (limited to 'gdk/gdkcontentformats.h')
-rw-r--r-- | gdk/gdkcontentformats.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdk/gdkcontentformats.h b/gdk/gdkcontentformats.h index 7ba1496316..1c67d005f3 100644 --- a/gdk/gdkcontentformats.h +++ b/gdk/gdkcontentformats.h @@ -58,9 +58,13 @@ GdkContentFormats * gdk_content_formats_union (GdkContentForma const GdkContentFormats *second) G_GNUC_WARN_UNUSED_RESULT; GDK_AVAILABLE_IN_3_94 gboolean gdk_content_formats_match (const GdkContentFormats *first, - const GdkContentFormats *second, - GType *out_gtype, - const char **out_mime_type); + const GdkContentFormats *second); +GDK_AVAILABLE_IN_3_94 +GType gdk_content_formats_match_gtype (const GdkContentFormats *first, + const GdkContentFormats *second); +GDK_AVAILABLE_IN_3_94 +const char * gdk_content_formats_match_mime_type (const GdkContentFormats *first, + const GdkContentFormats *second); GDK_AVAILABLE_IN_3_94 gboolean gdk_content_formats_contain_gtype (const GdkContentFormats *formats, GType type); |