summaryrefslogtreecommitdiff
path: root/gtk/gtkcontainer.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-06-20 20:42:01 +0200
committerTimm Bäder <mail@baedert.org>2018-06-20 20:47:18 +0200
commite8fefd92c5270a993580d2606605694fd66d313d (patch)
tree162f52a9758231f18bdb124fa9f580810619ab48 /gtk/gtkcontainer.c
parent22390adf11d619db5a7bc3553bc10952f5209adb (diff)
downloadgtk+-e8fefd92c5270a993580d2606605694fd66d313d.tar.gz
container: Remove SPECIAL_CONTAINER hack
As discussed in !129 Closes !129
Diffstat (limited to 'gtk/gtkcontainer.c')
-rw-r--r--gtk/gtkcontainer.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 731bdb1da0..9f11262a7c 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -50,15 +50,6 @@
#include <stdlib.h>
#include <string.h>
-/* A handful of containers inside GTK+ are cheating and widgets
- * inside internal structure as direct children for the purpose
- * of forall().
- */
-#define SPECIAL_CONTAINER(x) (GTK_IS_ASSISTANT (x) || \
- GTK_IS_POPOVER_MENU (x) || \
- GTK_IS_SHORTCUTS_SECTION (x) || \
- GTK_IS_SHORTCUTS_WINDOW (x))
-
/**
* SECTION:gtkcontainer
* @Short_description: Base class for widgets which contain other widgets
@@ -458,15 +449,6 @@ gtk_container_buildable_set_child_property (GtkContainer *container,
GError *error = NULL;
GObjectNotifyQueue *nqueue;
- if (SPECIAL_CONTAINER (container))
- {
- /* This can happen with internal children of complex widgets.
- * Silently ignore the child properties in this case. We explicitly
- * allow it for GtkAssistant, since that is how it works.
- */
- return;
- }
-
pspec = gtk_container_class_find_child_property (G_OBJECT_GET_CLASS (container), name);
if (!pspec)
{