container: Remove SPECIAL_CONTAINER hack
authorTimm Bäder <mail@baedert.org>
Wed, 20 Jun 2018 18:42:01 +0000 (20:42 +0200)
committerTimm Bäder <mail@baedert.org>
Wed, 20 Jun 2018 18:47:18 +0000 (20:47 +0200)
As discussed in !129

Closes !129

gtk/gtkcontainer.c

index 731bdb1da031a64dd4c83ac9d1b1612efcfdfc44..9f11262a7c178d5a363edf5ca6767bc51336561e 100644 (file)
 #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)
     {