summaryrefslogtreecommitdiff
path: root/tests/testtoolbar.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-11-14 19:43:13 -0500
committerMatthias Clasen <mclasen@redhat.com>2017-11-15 14:22:17 -0500
commitdbfaa9910705a35d3017f1e8e65a9cf52e2f7d9b (patch)
treea76a5be1cac5ef746c431a00e8b79a93b63f3e10 /tests/testtoolbar.c
parent049cc6aa013601c4e662c38df408f8956b155f0a (diff)
downloadgtk+-dbfaa9910705a35d3017f1e8e65a9cf52e2f7d9b.tar.gz
image: Remove icon-size argument from icon setters
Instead, add a function gtk_image_set_icon_size() for the cases where overriding the icon size is necessary. Treat icon sizes the same way as pixel sizes, too. So gtk_image_clear() no longer unsets the icon size.
Diffstat (limited to 'tests/testtoolbar.c')
-rw-r--r--tests/testtoolbar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testtoolbar.c b/tests/testtoolbar.c
index 3c44f3b19a..7a321428fa 100644
--- a/tests/testtoolbar.c
+++ b/tests/testtoolbar.c
@@ -557,7 +557,7 @@ main (gint argc, gchar **argv)
add_item_to_list (store, item, "-----");
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
- image = gtk_image_new_from_icon_name ("dialog-warning", GTK_ICON_SIZE_DIALOG);
+ image = gtk_image_new_from_icon_name ("dialog-warning");
item = gtk_tool_item_new ();
gtk_widget_show (image);
gtk_container_add (GTK_CONTAINER (item), image);
@@ -622,13 +622,13 @@ main (gint argc, gchar **argv)
gtk_tool_button_set_use_underline (GTK_TOOL_BUTTON (item), TRUE);
gicon = g_content_type_get_icon ("video/ogg");
- image = gtk_image_new_from_gicon (gicon, GTK_ICON_SIZE_LARGE_TOOLBAR);
+ image = gtk_image_new_from_gicon (gicon);
g_object_unref (gicon);
item = gtk_tool_button_new (image, "Video");
add_item_to_list (store, item, "Video");
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
- image = gtk_image_new_from_icon_name ("utilities-terminal", GTK_ICON_SIZE_LARGE_TOOLBAR);
+ image = gtk_image_new_from_icon_name ("utilities-terminal");
item = gtk_tool_button_new (image, "Terminal");
add_item_to_list (store, item, "Terminal");
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);