contentprovider: Switch wrong order in type check

We can provide textures as a paintable - we can't provide paintables as
textures.
This commit is contained in:
Benjamin Otte 2021-08-19 03:14:24 +02:00
parent 7bc1c9a562
commit 6f165efcdb

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