[gtk+/wip/baedert/drawing: 158/183] container: Propagate child	properties if parent != container
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+/wip/baedert/drawing: 158/183] container: Propagate child	properties if parent != container
- Date: Sat, 20 May 2017 13:29:46 +0000 (UTC)
commit 325e086ad0170ffbb82ef729b66ebd6ae6a7dbb5
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]