Skip to content

Commit 0d563fc

Browse files
committed
gtk+3: update to 3.24.52.
1 parent 8a5a2c3 commit 0d563fc

2 files changed

Lines changed: 69 additions & 2 deletions

File tree

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
From 8fb3557bce1fdf9e2c4146e89b43753688d64455 Mon Sep 17 00:00:00 2001
2+
From: Alessandro Astone <[email protected]>
3+
Date: Mon, 23 Mar 2026 15:48:20 +0100
4+
Subject: [PATCH] testsuite/a11y: Fixup treeview test after focus policy
5+
changes
6+
7+
Since commit
8+
fbc28541f0 ("a11y: Don't send focus-related events for unfocused treeview")
9+
the window must have focus in order for the treeview to have focus and emit
10+
the signal we want to test for.
11+
12+
Part-of: <https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/9716>
13+
---
14+
testsuite/a11y/tree-relationships.c | 26 +++++++++++++++++++++++---
15+
1 file changed, 23 insertions(+), 3 deletions(-)
16+
17+
diff --git a/testsuite/a11y/tree-relationships.c b/testsuite/a11y/tree-relationships.c
18+
index 34f45b690a5..a1cc1f38288 100644
19+
--- a/testsuite/a11y/tree-relationships.c
20+
+++ b/testsuite/a11y/tree-relationships.c
21+
@@ -223,6 +223,24 @@ process_pending_idles ()
22+
g_main_loop_run (loop);
23+
}
24+
25+
+static void
26+
+on_window_focus (GObject *obj,
27+
+ GParamSpec *pspec,
28+
+ gpointer data)
29+
+{
30+
+ GMainLoop *loop = data;
31+
+ g_main_loop_quit (loop);
32+
+}
33+
+
34+
+
35+
+static void
36+
+wait_window_focus (GtkWidget *window)
37+
+{
38+
+ GMainLoop *loop = g_main_loop_new (NULL, FALSE);
39+
+ g_signal_connect (window, "notify::is-active", G_CALLBACK (on_window_focus), loop);
40+
+ g_main_loop_run (loop);
41+
+}
42+
+
43+
static void
44+
test_a11y_tree_focus (void)
45+
{
46+
@@ -243,13 +261,15 @@ test_a11y_tree_focus (void)
47+
window = builder_get_toplevel (builder);
48+
g_assert (window);
49+
50+
- populate_tree (builder);
51+
+ gtk_widget_show (window);
52+
+ gtk_window_present (GTK_WINDOW (window));
53+
+ wait_window_focus (window);
54+
55+
+ populate_tree (builder);
56+
tv = (GtkTreeView *)gtk_builder_get_object (builder, "treeview1");
57+
gtk_tree_view_expand_all (tv);
58+
59+
- gtk_widget_show (window);
60+
-
61+
+ gtk_widget_grab_focus (GTK_WIDGET (tv));
62+
gtk_tree_view_get_cursor (tv, &path, &focus_column);
63+
gtk_tree_path_down (path);
64+
data.count = 0;
65+
--
66+
GitLab
67+

srcpkgs/gtk+3/template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Template file for 'gtk+3'
22
pkgname=gtk+3
3-
version=3.24.50
3+
version=3.24.52
44
revision=1
55
build_style=meson
66
build_helper="gir"
@@ -33,7 +33,7 @@ license="LGPL-2.1-or-later"
3333
homepage="https://www.gtk.org/"
3434
changelog="https://gitlab.gnome.org/GNOME/gtk/-/raw/gtk-3-24/NEWS"
3535
distfiles="${GNOME_SITE}/gtk/${version%.*}/gtk-${version}.tar.xz"
36-
checksum=399118a5699314622165a11b769ea9b6ed68e037b6d46d57cfcf4851dec07529
36+
checksum=80931fa472a77b9a164f6740e3c0b444fac6770054632d35a7ff9d679e5e7b9f
3737
make_check_pre="xvfb-run dbus-run-session"
3838
# _broken_tests=""
3939

0 commit comments

Comments
 (0)