From d2d344a5310138d363d0ca6c7b7c9daf21c9ce37 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 28 Aug 2010 19:11:23 -0400 Subject: [PATCH] Remove a workaround for old toolbar api The old, deprecated toolbar api has been removed, so this workaround is no longer necessary. --- gtk/gtkcontainer.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index 275cda133..a2346ff67 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -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); } -- 2.43.2