From 761903e8782a005a51961b4e3b1d6cc51b9889a6 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 25 May 2016 23:55:29 +0200 Subject: GTK3 gtk-utils: do not use deprecated gtk_icon_info_free --- src/gtk-utils.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.2.1