summaryrefslogtreecommitdiff
path: root/tests/testgiconpixbuf.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/testgiconpixbuf.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/testgiconpixbuf.c')
-rw-r--r--tests/testgiconpixbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testgiconpixbuf.c b/tests/testgiconpixbuf.c
index fd9ab1d558..6900f5e379 100644
--- a/tests/testgiconpixbuf.c
+++ b/tests/testgiconpixbuf.c
@@ -43,7 +43,7 @@ main (int argc,
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
gtk_box_pack_start (GTK_BOX (hbox), vbox);
- image = gtk_image_new_from_gicon (G_ICON (pixbuf), GTK_ICON_SIZE_DIALOG);
+ image = gtk_image_new_from_gicon (G_ICON (pixbuf));
gtk_box_pack_start (GTK_BOX (vbox), image);
label = gtk_label_new (NULL);
@@ -58,7 +58,7 @@ main (int argc,
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
gtk_box_pack_start (GTK_BOX (hbox), vbox);
- image2 = gtk_image_new_from_gicon (emblemed, GTK_ICON_SIZE_DIALOG);
+ image2 = gtk_image_new_from_gicon (emblemed);
gtk_box_pack_start (GTK_BOX (vbox), image2);
label = gtk_label_new (NULL);