1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Florian Weimer <fweimer@redhat.com>
Date: Fri, 19 Jan 2024 21:31:33 +0100
Subject: libcheese: Add GtkWidget cast to avoid an incompatible-pointer-types
error
This is required for compilation with GCC 14.
Forwarded: https://gitlab.gnome.org/GNOME/cheese/-/merge_requests/70
Bug-Debian: https://bugs.debian.org/1074878
---
libcheese/cheese-flash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libcheese/cheese-flash.c b/libcheese/cheese-flash.c
index 59959db..e402322 100644
--- a/libcheese/cheese-flash.c
+++ b/libcheese/cheese-flash.c
@@ -132,7 +132,7 @@ cheese_flash_set_property (GObject *object,
GObject *parent;
parent = g_value_get_object (value);
if (object != NULL)
- priv->parent = g_object_ref (parent);
+ priv->parent = GTK_WIDGET (g_object_ref (parent));
else
priv->parent = NULL;
}
|