summaryrefslogtreecommitdiff
path: root/src/gtk-utils.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-05-25 23:55:29 +0200
committerraveit65 <[email protected]>2016-05-26 01:51:37 +0200
commit761903e8782a005a51961b4e3b1d6cc51b9889a6 (patch)
treeafafef22f34bea0626cf01535b1c4f1f68658042 /src/gtk-utils.c
parentb961bb3d4daf980560ef79af178ae573f3e4da72 (diff)
downloadengrampa-761903e8782a005a51961b4e3b1d6cc51b9889a6.tar.bz2
engrampa-761903e8782a005a51961b4e3b1d6cc51b9889a6.tar.xz
GTK3 gtk-utils: do not use deprecated gtk_icon_info_free
Diffstat (limited to 'src/gtk-utils.c')
-rw-r--r--src/gtk-utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gtk-utils.c b/src/gtk-utils.c
index 8d29c07..b959e29 100644
--- a/src/gtk-utils.c
+++ b/src/gtk-utils.c
@@ -682,7 +682,11 @@ get_themed_icon_pixbuf (GThemedIcon *icon,
g_clear_error (&error);
}
+#if GTK_CHECK_VERSION (3, 0, 0)
+ g_object_unref (icon_info);
+#else
gtk_icon_info_free (icon_info);
+#endif
g_strfreev (icon_names);
return pixbuf;