Skip to content

Commit

Permalink
tests: Add deprecation guards
Browse files Browse the repository at this point in the history
... for newly deprecated gtk_icon_info_get_builtin_pixbuf()
  • Loading branch information
Benjamin Otte committed Jul 10, 2014
1 parent 6a2ae1b commit 46462ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testicontheme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 46462ee

Please sign in to comment.