testdnd2: Fix the text case

We must take mime types into account when checking.
This commit is contained in:
Matthias Clasen 2020-01-08 15:59:38 -05:00
parent 187a701a99
commit 5e57b3d07a

View 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);