mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
content provider impl: Take mime types into account
This commit is contained in:
parent
d5f4579384
commit
187a701a99
@ -21,6 +21,7 @@
|
|||||||
#include "gdkcontentprovider.h"
|
#include "gdkcontentprovider.h"
|
||||||
|
|
||||||
#include "gdkcontentformats.h"
|
#include "gdkcontentformats.h"
|
||||||
|
#include "gdkcontentserializer.h"
|
||||||
#include "gdkintl.h"
|
#include "gdkintl.h"
|
||||||
#include "gdkcontentproviderimpl.h"
|
#include "gdkcontentproviderimpl.h"
|
||||||
|
|
||||||
@ -502,9 +503,8 @@ gdk_content_provider_new_with_formats (GdkContentFormats *formats,
|
|||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
GdkContentProviderCallback2 *content;
|
GdkContentProviderCallback2 *content;
|
||||||
|
|
||||||
content = g_object_new (GDK_TYPE_CONTENT_PROVIDER_CALLBACK2, NULL);
|
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->func = func;
|
||||||
content->data = data;
|
content->data = data;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user