From 07cbbc6fa9db2a630270d2960d436c0e687a4955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 12 May 2017 11:46:26 +0200 Subject: [PATCH] container: Propagate child properties if parent != container This can happen when e.g. GtkNotebook adds the child page widgets not directly inside the notebook, but inside the inner GtkStack. --- gtk/gtkcontainer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index 1f7f69d30e..543d604477 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -580,8 +580,7 @@ gtk_container_buildable_set_child_property (GtkContainer *container, GError *error = NULL; GObjectNotifyQueue *nqueue; - if (_gtk_widget_get_parent (child) != (GtkWidget *)container && - !SPECIAL_CONTAINER (container)) + if (SPECIAL_CONTAINER (container)) { /* This can happen with internal children of complex widgets. * Silently ignore the child properties in this case. We explicitly