[gtk+/wip/baedert/drawing: 161/241] 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: 161/241] container: Propagate child properties if parent != container
- Date: Thu, 15 Jun 2017 11:01:09 +0000 (UTC)
commit c545a1629ddc530c9b3486571dbe8b5e3e85c38c
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]