[gtk/dnd-gestures-2: 10/14] content provider impl: Take mime types into account
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-gestures-2: 10/14] content provider impl: Take mime types into account
- Date: Wed, 8 Jan 2020 21:37:38 +0000 (UTC)
commit 71981c4176a3c7d6c63c0a9023c5371279abc7d2
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 8 15:58:52 2020 -0500
content provider impl: Take mime types into account
gdk/gdkcontentproviderimpl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkcontentproviderimpl.c b/gdk/gdkcontentproviderimpl.c
index 838c7b72c5..ebea1356a3 100644
--- a/gdk/gdkcontentproviderimpl.c
+++ b/gdk/gdkcontentproviderimpl.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]