[gtk+/wip/baedert/drawing: 187/306] 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: 187/306] container: Propagate child properties if parent != container
- Date: Fri, 23 Jun 2017 20:12:38 +0000 (UTC)
commit 4194dd584bb852af6d84ec784190b4c569c2b033
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]