content provider impl: Take mime types into account
authorMatthias Clasen <mclasen@redhat.com>
Wed, 8 Jan 2020 20:58:52 +0000 (15:58 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 8 Jan 2020 23:48:22 +0000 (18:48 -0500)
gdk/gdkcontentproviderimpl.c

index 838c7b72c56a373fa12738f2925e0de6fcdf304e..ebea1356a3d37fef4b2a1260d324021fbea59fbd 100644 (file)
@@ -21,6 +21,7 @@
 #include "gdkcontentprovider.h"
 
 #include "gdkcontentformats.h"
+#include "gdkcontentserializer.h"
 #include "gdkintl.h"
 #include "gdkcontentproviderimpl.h"
 
@@ -502,9 +503,8 @@ gdk_content_provider_new_with_formats (GdkContentFormats              *formats,
                                        gpointer                        data)
 {
   GdkContentProviderCallback2 *content;
-
   content = g_object_new (GDK_TYPE_CONTENT_PROVIDER_CALLBACK2, NULL);
-  content->formats = gdk_content_formats_ref (formats);
+  content->formats = gdk_content_formats_union_serialize_mime_types (gdk_content_formats_ref (formats));
   content->func = func;
   content->data = data;