[gtk+] container: Remove check



commit a3805333361fee37a3b1a974cfa6452a85169f08
Author: Benjamin Otte <otte redhat com>
Date:   Tue Mar 1 18:34:43 2016 +0100

    container: Remove check
    
    The check is not working for many containers anymore as they are not the
    direct parents of their children. We want to allow this behavior in more
    places.

 gtk/gtkcontainer.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 01dbbcb..5e6d54a 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -1897,13 +1897,6 @@ gtk_container_remove (GtkContainer *container,
 {
   g_return_if_fail (GTK_IS_CONTAINER (container));
   g_return_if_fail (GTK_IS_WIDGET (widget));
-  g_return_if_fail (_gtk_widget_get_parent (widget) == GTK_WIDGET (container) ||
-                    GTK_IS_ASSISTANT (container) ||
-                    GTK_IS_ACTION_BAR (container) ||
-                    GTK_IS_POPOVER_MENU (container) ||
-                    GTK_IS_SHORTCUTS_GROUP (container) ||
-                    GTK_IS_SHORTCUTS_SECTION (container) ||
-                    GTK_IS_SHORTCUTS_WINDOW (container));
 
   g_object_ref (container);
   g_object_ref (widget);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]