summaryrefslogtreecommitdiff
path: root/tests/testicontheme.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-04-25 18:01:44 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-04-25 18:01:44 +0000
commit0ac3069358e0d269a4d05cc9ff13ee427226de51 (patch)
tree1a36a28b197431b2a0f53212f718e2d499129621 /tests/testicontheme.c
parentaa3f2a792aceef378a5456e72f59dc023b039061 (diff)
downloadgtk+-0ac3069358e0d269a4d05cc9ff13ee427226de51.tar.gz
Set the filename to NULL for builtin icons, sinc
2007-04-25 Matthias Clasen <mclasen@redhat.com> * gtk/gtkicontheme.c (theme_lookup_icon): Set the filename to NULL for builtin icons, sinc gtk_icon_info_get_builtin_pixbuf() depends on it. * tests/testicontheme.c: Report builtin icons. svn path=/trunk/; revision=17638
Diffstat (limited to 'tests/testicontheme.c')
-rw-r--r--tests/testicontheme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testicontheme.c b/tests/testicontheme.c
index c14f4d2d32..90d4eaad59 100644
--- a/tests/testicontheme.c
+++ b/tests/testicontheme.c
@@ -128,9 +128,9 @@ main (int argc, char *argv[])
if (argc >= 5)
size = atoi (argv[4]);
- icon_info = gtk_icon_theme_lookup_icon (icon_theme, argv[3], size, 0);
+ icon_info = gtk_icon_theme_lookup_icon (icon_theme, argv[3], size, GTK_ICON_LOOKUP_USE_BUILTIN);
g_print ("icon for %s at %dx%d is %s\n", argv[3], size, size,
- icon_info ? gtk_icon_info_get_filename (icon_info) : "<none>");
+ icon_info ? (gtk_icon_info_get_builtin_pixbuf (icon_info) ? "<builtin>" : gtk_icon_info_get_filename (icon_info)) : "<none>");
if (icon_info)
{