]> Pileus Git - ~andy/gtk/commitdiff
Remove a workaround for old toolbar api
authorMatthias Clasen <mclasen@redhat.com>
Sat, 28 Aug 2010 23:11:23 +0000 (19:11 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 28 Aug 2010 23:11:23 +0000 (19:11 -0400)
The old, deprecated toolbar api has been removed, so this workaround
is no longer necessary.

gtk/gtkcontainer.c

index 275cda1333f96b6a906a8644a97b267ac426409e..a2346ff673f45cfcae2f098fae7e545261723ced 100644 (file)
@@ -1252,13 +1252,7 @@ gtk_container_remove (GtkContainer *container,
 {
   g_return_if_fail (GTK_IS_CONTAINER (container));
   g_return_if_fail (GTK_IS_WIDGET (widget));
-
-  /* When using the deprecated API of the toolbar, it is possible
-   * to legitimately call this function with a widget that is not
-   * a direct child of the container.
-   */
-  g_return_if_fail (GTK_IS_TOOLBAR (container) ||
-                    gtk_widget_get_parent (widget) == GTK_WIDGET (container));
+  g_return_if_fail (gtk_widget_get_parent (widget) == GTK_WIDGET (container));
 
   g_signal_emit (container, container_signals[REMOVE], 0, widget);
 }