summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-07-10 14:23:54 +0200
committerBenjamin Otte <otte@redhat.com>2014-07-10 18:56:34 +0200
commit46462ee7c4b82dab7662eb14d55aa318ac6eba31 (patch)
treee982852f3c612efd12d2a0dce7189dcd857dea97 /tests
parent6a2ae1bb9058086acfc1e2a9da6f4163b876af1e (diff)
downloadgtk+-46462ee7c4b82dab7662eb14d55aa318ac6eba31.tar.gz
tests: Add deprecation guards
... for newly deprecated gtk_icon_info_get_builtin_pixbuf()
Diffstat (limited to 'tests')
-rw-r--r--tests/testicontheme.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testicontheme.c b/tests/testicontheme.c
index 47c0e4b298..216a398a96 100644
--- a/tests/testicontheme.c
+++ b/tests/testicontheme.c
@@ -202,8 +202,10 @@ main (int argc, char *argv[])
scale = atoi (argv[5]);
icon_info = gtk_icon_theme_lookup_icon_for_scale (icon_theme, argv[3], size, scale, GTK_ICON_LOOKUP_USE_BUILTIN);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
g_print ("icon for %s at %dx%d@%dx is %s\n", argv[3], size, size, scale,
icon_info ? (gtk_icon_info_get_builtin_pixbuf (icon_info) ? "<builtin>" : gtk_icon_info_get_filename (icon_info)) : "<none>");
+G_GNUC_END_IGNORE_DEPRECATIONS
if (icon_info)
{