summaryrefslogtreecommitdiff
path: root/tests/testtoolbar.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-09-27 17:06:59 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2011-09-27 17:31:11 -0400
commit5cf0450c69f7bbdb0d1ca22ec54355e3b3e8c9c2 (patch)
tree497edd375648f56240188ed6911c4c8bf30171ae /tests/testtoolbar.c
parent63124e81b6131e29c2f06c7ad795ac570f92e275 (diff)
downloadgtk+-5cf0450c69f7bbdb0d1ca22ec54355e3b3e8c9c2.tar.gz
toolbutton: don't force the icon widget to be a GtkMisc
There's really no reason the icon widget must be a GtkMisc. You might want to use e.g. a GtkSpinner.
Diffstat (limited to 'tests/testtoolbar.c')
-rw-r--r--tests/testtoolbar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testtoolbar.c b/tests/testtoolbar.c
index 16d847a853..aafac3d924 100644
--- a/tests/testtoolbar.c
+++ b/tests/testtoolbar.c
@@ -680,6 +680,12 @@ main (gint argc, gchar **argv)
add_item_to_list (store, item, "Terminal");
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
+ image = gtk_spinner_new ();
+ gtk_spinner_start (GTK_SPINNER (image));
+ item = gtk_tool_button_new (image, "Spinner");
+ add_item_to_list (store, item, "Spinner");
+ gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
+
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
gtk_container_add (GTK_CONTAINER (vbox), hbox);