diff options
author | Christian Dywan <christian@twotoasts.de> | 2010-04-23 18:07:21 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-05-03 01:51:23 +0200 |
commit | 765882ce9a938075a278270c8965811340061bbf (patch) | |
tree | 7855e8da3ed937c58b6cf15b1f49a9fa7523904d /tests/stresstest-toolbar.c | |
parent | b4188f876f414a576ad0c4345d66ebaabbb7ee80 (diff) | |
download | gtk+-765882ce9a938075a278270c8965811340061bbf.tar.gz |
Declare random item correctly in stresstest-toolbar
Diffstat (limited to 'tests/stresstest-toolbar.c')
-rw-r--r-- | tests/stresstest-toolbar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/stresstest-toolbar.c b/tests/stresstest-toolbar.c index 7267981d8f..539e6de83b 100644 --- a/tests/stresstest-toolbar.c +++ b/tests/stresstest-toolbar.c @@ -35,18 +35,18 @@ add_random (GtkToolbar *toolbar, gint n) gint position; gchar *label = g_strdup_printf ("Button %d", n); - GtkWidget *widget = gtk_tool_button_new (NULL, label); - gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (widget), "Bar"); + GtkToolItem *toolitem = gtk_tool_button_new (NULL, label); + gtk_tool_item_set_tooltip_text (toolitem, "Bar"); g_free (label); - gtk_widget_show_all (widget); + gtk_widget_show_all (GTK_WIDGET (toolitem)); if (g_list_length (toolbar->children) == 0) position = 0; else position = g_random_int_range (0, g_list_length (toolbar->children)); - gtk_toolbar_insert (toolbar, widget, position); + gtk_toolbar_insert (toolbar, toolitem, position); } static void |