aboutsummaryrefslogtreecommitdiff
path: root/libindicator
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2013-05-29 10:25:00 -0500
committerTed Gould <ted@gould.cx>2013-05-29 10:25:00 -0500
commitb46f29a05653df595eeaba2557671ab6e2a2467d (patch)
tree91fa3496af2d7cbe650d0ed43faf4c48af036743 /libindicator
parentae198af4a8d3ea34d308aff1754052f364f398d6 (diff)
downloadlibayatana-indicator-b46f29a05653df595eeaba2557671ab6e2a2467d.tar.gz
libayatana-indicator-b46f29a05653df595eeaba2557671ab6e2a2467d.tar.bz2
libayatana-indicator-b46f29a05653df595eeaba2557671ab6e2a2467d.zip
Handling the deprecation of gtk_icon_info_free()
Diffstat (limited to 'libindicator')
-rw-r--r--libindicator/indicator-image-helper.c6
1 files changed, 6 insertions, 0 deletions
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
}
}