diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-05-22 07:10:18 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-05-24 20:16:07 +0200 |
commit | cc8dcf738a42ef8c8340bef4c969cd33228bf673 (patch) | |
tree | 774f8c1ceace24a2854e01f211fb7f968bbbeb3e /tests/stresstest-toolbar.c | |
parent | 33097d65b711be31dd02fcb4b99a4dabdca63575 (diff) | |
download | gtk+-cc8dcf738a42ef8c8340bef4c969cd33228bf673.tar.gz |
Remove deprecated GtkToolbar code
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=616817
Diffstat (limited to 'tests/stresstest-toolbar.c')
-rw-r--r-- | tests/stresstest-toolbar.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 <gtk/gtk.h> @@ -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 |