summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-10-25 14:09:49 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-10-25 14:09:49 +0000
commit6fa44ae40794f1f0c58915db5fa5d0686d5112c9 (patch)
tree01dc581a9bcdbb24d439dfc2a627eaa6685c35ee /tests
parent30f06bee4a5f4909525963f2a013a5b5709b6ebd (diff)
downloadgtk+-6fa44ae40794f1f0c58915db5fa5d0686d5112c9.tar.gz
Use gtk_image_new_from_icon_name().
2004-10-25 Matthias Clasen <mclasen@redhat.com> * tests/testicontheme.c (main): Use gtk_image_new_from_icon_name().
Diffstat (limited to 'tests')
-rw-r--r--tests/testicontheme.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/testicontheme.c b/tests/testicontheme.c
index dafc2ecba9..a28c55ca5e 100644
--- a/tests/testicontheme.c
+++ b/tests/testicontheme.c
@@ -63,12 +63,7 @@ main (int argc, char *argv[])
size = GTK_ICON_SIZE_BUTTON;
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-#if 1
- pixbuf = gtk_icon_theme_load_icon (icon_theme, argv[3], size, 0, NULL);
- image = gtk_image_new_from_pixbuf (pixbuf);
-#else
image = gtk_image_new_from_icon_name (argv[3], size);
-#endif
gtk_container_add (GTK_CONTAINER (window), image);
gtk_widget_show_all (window);