From b46f29a05653df595eeaba2557671ab6e2a2467d Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 29 May 2013 10:25:00 -0500 Subject: Handling the deprecation of gtk_icon_info_free() --- libindicator/indicator-image-helper.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libindicator/indicator-image-helper.c b/libindicator/indicator-image-helper.c index aff9e39..9f48895 100644 --- a/libindicator/indicator-image-helper.c +++ b/libindicator/indicator-image-helper.c @@ -119,7 +119,13 @@ refresh_image (GtkImage * image) } if (icon_info != NULL) { +#if GTK_CHECK_VERSION(3, 8, 0) + g_object_unref(icon_info); +#else + /* NOTE: Leaving this in for lower version as it seems + the object_unref() doesn't work on earlier versions. */ gtk_icon_info_free (icon_info); +#endif } } -- cgit v1.2.3