summaryrefslogtreecommitdiff
path: root/x11-libs/gtk+/files/gtk+-3.24.48-signal-handler.patch
blob: 40ca24d90093b7f2a1b31f395ea0832da94cd9c3 (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
26
27
28
29
30
31
https://gitlab.gnome.org/GNOME/gtk/-/commit/32381771b1cfa55770036e525a6c53c70be6c920

From 32381771b1cfa55770036e525a6c53c70be6c920 Mon Sep 17 00:00:00 2001
From: Matthias Clasen <mclasen@redhat.com>
Date: Wed, 12 Feb 2025 12:16:34 +0100
Subject: [PATCH] im: Fix signal handler signature

This was causing crashes, probably since 2019 :(

Fixes: #7306
Fixes: #7331
---
 gtk/gtkimmulticontext.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gtk/gtkimmulticontext.c b/gtk/gtkimmulticontext.c
index 50363559d7b..2d70cdeda06 100644
--- a/gtk/gtkimmulticontext.c
+++ b/gtk/gtkimmulticontext.c
@@ -282,7 +282,8 @@ gtk_im_multicontext_get_slave (GtkIMMulticontext *multicontext)
 }
 
 static void
-im_module_setting_changed (GtkSettings       *settings, 
+im_module_setting_changed (GtkSettings       *settings,
+                           GParamSpec        *pspec,
                            GtkIMMulticontext *self)
 {
   gtk_im_multicontext_set_slave (self, NULL, FALSE);
-- 
GitLab