contentprovider: Switch wrong order in type check
authorBenjamin Otte <otte@redhat.com>
Thu, 19 Aug 2021 01:14:24 +0000 (03:14 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 19 Aug 2021 01:16:48 +0000 (03:16 +0200)
We can provide textures as a paintable - we can't provide paintables as
textures.

gdk/gdkcontentproviderimpl.c

index 2275792ac34925de4a7ae7ffefc6f8404a9a1875..8856e0b39746669f5cd65eca8815b9f40d67b3f4 100644 (file)
@@ -80,7 +80,7 @@ gdk_content_provider_value_get_value (GdkContentProvider  *provider,
 {
   GdkContentProviderValue *content = GDK_CONTENT_PROVIDER_VALUE (provider);
 
-  if (G_VALUE_HOLDS (value, G_VALUE_TYPE (&content->value)))
+  if (G_VALUE_HOLDS (&content->value, G_VALUE_TYPE (value)))
     {
       g_value_copy (&content->value, value);
       return TRUE;