[gtk/wip/otte/for-master: 2/3] contentprovider: Switch wrong order in type check
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/for-master: 2/3] contentprovider: Switch wrong order in type check
- Date: Thu, 19 Aug 2021 01:26:59 +0000 (UTC)
commit 6f165efcdbfb5c3a3254dbc8f6af56e90111cb5f
Author: Benjamin Otte <otte redhat com>
Date: Thu Aug 19 03:14:24 2021 +0200
contentprovider: Switch wrong order in type check
We can provide textures as a paintable - we can't provide paintables as
textures.
gdk/gdkcontentproviderimpl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/gdkcontentproviderimpl.c b/gdk/gdkcontentproviderimpl.c
index 2275792ac3..8856e0b397 100644
--- a/gdk/gdkcontentproviderimpl.c
+++ b/gdk/gdkcontentproviderimpl.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]