From cc8dcf738a42ef8c8340bef4c969cd33228bf673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Sat, 22 May 2010 07:10:18 +0200 Subject: Remove deprecated GtkToolbar code Fixes https://bugzilla.gnome.org/show_bug.cgi?id=616817 --- tests/stresstest-toolbar.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/stresstest-toolbar.c') diff --git a/tests/stresstest-toolbar.c b/tests/stresstest-toolbar.c index 539e6de83b..202b155903 100644 --- a/tests/stresstest-toolbar.c +++ b/tests/stresstest-toolbar.c @@ -17,7 +17,6 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ -#undef GTK_DISABLE_DEPRECATED #include "config.h" #include @@ -52,7 +51,7 @@ add_random (GtkToolbar *toolbar, gint n) static void remove_random (GtkToolbar *toolbar) { - GtkToolbarChild *child; + GtkWidget *child; gint position; if (!toolbar->children) @@ -62,7 +61,7 @@ remove_random (GtkToolbar *toolbar) child = g_list_nth_data (toolbar->children, position); - gtk_container_remove (GTK_CONTAINER (toolbar), child->widget); + gtk_container_remove (GTK_CONTAINER (toolbar), child); } static gboolean -- cgit v1.2.1