summaryrefslogtreecommitdiff
path: root/sys-apps/xdg-desktop-portal-gnome/files/45.1-c99.patch
blob: 884b0d9c15a69fdf63c53a02f996c52abdb79f9f (plain)
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
https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues/112
https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/merge_requests/134

From 5fb3c0c23ccd76c6f8239bbb66c3fb1230208d5e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tyrychtr?= <ltyrycht@redhat.com>
Date: Mon, 11 Dec 2023 11:36:13 +0100
Subject: [PATCH] input-capture: Pass correct pointer type to
 gtk_window_add_group

It produced only a warning, but will be an error in the future.

Fixes #112
--- a/src/inputcapture.c
+++ b/src/inputcapture.c
@@ -409,7 +409,7 @@ create_input_capture_dialog (GDBusMethodInvocation *invocation,
   gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
 
   window_group = gtk_window_group_new ();
-  gtk_window_group_add_window (window_group, dialog);
+  gtk_window_group_add_window (window_group, GTK_WINDOW (dialog));
 
   dialog_handle = g_new0 (InputCaptureDialogHandle, 1);
   dialog_handle->request = g_object_ref (request);
-- 
GitLab