testdnd2: Fix the text case
authorMatthias Clasen <mclasen@redhat.com>
Wed, 8 Jan 2020 20:59:38 +0000 (15:59 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 8 Jan 2020 23:48:22 +0000 (18:48 -0500)
We must take mime types into account when checking.

tests/testdnd2.c

index a3b2917b8ade84f126fd412f37119fa2e511eabb..b601ad6bcb25cf44c654b81f2c2ce9247a27808b 100644 (file)
@@ -221,6 +221,7 @@ get_data (const char *mimetype,
   gboolean want_text;
 
   formats = gdk_content_formats_new_for_gtype (G_TYPE_STRING);
+  formats = gdk_content_formats_union_serialize_mime_types (formats);
   want_text = gdk_content_formats_contain_mime_type (formats, mimetype);
   gdk_content_formats_unref (formats);