1 From 1646b8a78f00cbddc00f6138d80fbc42dec82dac Mon Sep 17 00:00:00 2001
2 From: iain holmes <iain@xamarin.com>
3 Date: Tue, 13 Sep 2016 16:06:39 +0100
4 Subject: [PATCH] [a11y] Make the GtkPaned widget emit GtkContainer::add
8 gtk/gtkpaned.c | 13 +++++++++++++
9 1 file changed, 13 insertions(+)
11 diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
12 index f6225f0..0e3afd6 100644
15 @@ -1375,6 +1375,10 @@ gtk_paned_pack1 (GtkPaned *paned,
16 paned->child1_shrink = shrink;
18 gtk_widget_set_parent (child, GTK_WIDGET (paned));
20 + /* We need to emit this signal so that the accessibility system knows
21 + that a widget has been added to the pane */
22 + g_signal_emit_by_name (G_OBJECT (paned), "add", child);
26 @@ -1394,6 +1398,10 @@ gtk_paned_pack2 (GtkPaned *paned,
27 paned->child2_shrink = shrink;
29 gtk_widget_set_parent (child, GTK_WIDGET (paned));
31 + /* We need to emit this signal so that the accessibility system knows
32 + that a widget has been added to the pane */
33 + g_signal_emit_by_name (G_OBJECT (paned), "add", child);
37 @@ -1406,6 +1414,11 @@ gtk_paned_add (GtkContainer *container,
39 g_return_if_fail (GTK_IS_PANED (container));
41 + /* Break the add signal cycle */
42 + if (widget->parent == container) {
46 paned = GTK_PANED (container);