[gtk/matthiasc/for-master: 8/8] paned: Don't ignore the type attribute
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 8/8] paned: Don't ignore the type attribute
- Date: Tue, 12 May 2020 20:29:25 +0000 (UTC)
commit b230ea2140fc20846e4f4ea153c7dc044efa8825
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 12 16:26:28 2020 -0400
paned: Don't ignore the type attribute
We were meaning to only handle <child> here for
compatibility, not <child type="somethingelse">.
gtk/gtkpaned.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index 29ebdf350b..a789fb97d1 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -772,7 +772,7 @@ gtk_paned_buildable_add_child (GtkBuildable *buildable,
gtk_paned_set_resize_end_child (self, TRUE);
gtk_paned_set_shrink_end_child (self, TRUE);
}
- else if (GTK_IS_WIDGET (child))
+ else if (type == NULL && GTK_IS_WIDGET (child))
{
if (self->start_child == NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]