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 /tests | |
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 'tests')
-rw-r--r-- | tests/testdnd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testdnd.c b/tests/testdnd.c index 04ec5bf467..e2f81e463b 100644 --- a/tests/testdnd.c +++ b/tests/testdnd.c @@ -344,7 +344,7 @@ target_drag_drop (GtkWidget *widget, guint time) { GdkContentFormats *formats; - GdkAtom format; + const char *format; g_print("drop\n"); have_drag = FALSE; @@ -352,7 +352,7 @@ target_drag_drop (GtkWidget *widget, gtk_image_set_from_pixbuf (GTK_IMAGE (widget), trashcan_closed); formats = gdk_drag_context_get_formats (context); - gdk_content_formats_match (formats, formats, NULL, &format); + format = gdk_content_formats_match_mime_type (formats, formats); if (format) { gtk_drag_get_data (widget, context, |