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.
This commit is contained in:
Timm Bäder 2017-05-12 11:46:26 +02:00 committed by Matthias Clasen
parent 2bf1c09f65
commit 07cbbc6fa9

View File

@ -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