[gtk+/wip/baedert/drawing: 161/348] container: Propagate child properties if parent != container



commit 0311526fcaf4e6a0bb38c018e686f98bb532aff3
Author: Timm Bäder <mail baedert org>
Date:   Fri May 12 11:46:26 2017 +0200

    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 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 1f7f69d..543d604 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]