Transfer the Mac SDK bockbuild profiles & resources inside the Mono repository.
[mono.git] / bockbuild / mac-sdk / patches / gtk / make-gtkpaned-emit-signals.patch
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
5  signals
6
7 ---
8  gtk/gtkpaned.c | 13 +++++++++++++
9  1 file changed, 13 insertions(+)
10
11 diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
12 index f6225f0..0e3afd6 100644
13 --- a/gtk/gtkpaned.c
14 +++ b/gtk/gtkpaned.c
15 @@ -1375,6 +1375,10 @@ gtk_paned_pack1 (GtkPaned  *paned,
16        paned->child1_shrink = shrink;
17
18        gtk_widget_set_parent (child, GTK_WIDGET (paned));
19 +
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);
23      }
24  }
25
26 @@ -1394,6 +1398,10 @@ gtk_paned_pack2 (GtkPaned  *paned,
27        paned->child2_shrink = shrink;
28
29        gtk_widget_set_parent (child, GTK_WIDGET (paned));
30 +
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);
34      }
35  }
36
37 @@ -1406,6 +1414,11 @@ gtk_paned_add (GtkContainer *container,
38
39    g_return_if_fail (GTK_IS_PANED (container));
40
41 +  /* Break the add signal cycle */
42 +  if (widget->parent == container) {
43 +    return;
44 +  }
45 +
46    paned = GTK_PANED (container);
47
48    if (!paned->child1)