File: libcheese-Add-GtkWidget-cast-to-avoid-an-incompatible-poi.patch

package info (click to toggle)
cheese 44.1-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,312 kB
  • sloc: ansic: 6,621; xml: 293; sh: 183; python: 55; makefile: 21
file content (26 lines) | stat: -rw-r--r-- 888 bytes parent folder | download
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;
     }