diff options
author | Timm Bäder <mail@baedert.org> | 2017-05-12 11:46:26 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-07-19 21:27:12 -0400 |
commit | 07cbbc6fa9db2a630270d2960d436c0e687a4955 (patch) | |
tree | a19316829520d7d90e96f20c40b04158d25b1dc1 /gtk/gtkcontainer.c | |
parent | 2bf1c09f658f6078e305119713ff0f297d0082be (diff) | |
download | gtk+-07cbbc6fa9db2a630270d2960d436c0e687a4955.tar.gz |
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.
Diffstat (limited to 'gtk/gtkcontainer.c')
-rw-r--r-- | gtk/gtkcontainer.c | 3 |
1 files changed, 1 insertions, 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 |