forked from AuroraMiddleware/gtk
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:
parent
2bf1c09f65
commit
07cbbc6fa9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user