summaryrefslogtreecommitdiff
path: root/tests/testtoolbar.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2010-01-26 15:41:00 +0100
committerChristian Persch <chpe@gnome.org>2010-02-09 15:08:56 +0100
commit9497a198f7c6fc528391648f5e85dfa09364fc74 (patch)
treede13b7905ead45518b692cf37d2a7a7dbb594322 /tests/testtoolbar.c
parentbc39d88b4479051360cf8a16f40bbf51b7b758c4 (diff)
downloadgtk+-9497a198f7c6fc528391648f5e85dfa09364fc74.tar.gz
Correctly clone the toolbutton's icon-name image widget
Bug #608162.
Diffstat (limited to 'tests/testtoolbar.c')
-rw-r--r--tests/testtoolbar.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/testtoolbar.c b/tests/testtoolbar.c
index 42e5feaea5..af7cbee782 100644
--- a/tests/testtoolbar.c
+++ b/tests/testtoolbar.c
@@ -715,6 +715,11 @@ main (gint argc, gchar **argv)
add_item_to_list (store, item, "Video");
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
+ image = gtk_image_new_from_icon_name ("utility-terminal", GTK_ICON_SIZE_LARGE_TOOLBAR);
+ item = gtk_tool_button_new (image, "Terminal");
+ add_item_to_list (store, item, "Terminal");
+ gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
+
hbox = gtk_hbox_new (FALSE, 5);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
gtk_table_attach (GTK_TABLE (table), hbox,