diff options
author | Ted Gould <ted@gould.cx> | 2013-05-29 10:25:00 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2013-05-29 10:25:00 -0500 |
commit | b46f29a05653df595eeaba2557671ab6e2a2467d (patch) | |
tree | 91fa3496af2d7cbe650d0ed43faf4c48af036743 /libindicator | |
parent | ae198af4a8d3ea34d308aff1754052f364f398d6 (diff) | |
download | libayatana-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.c | 6 |
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 } } |