diff options
author | Ted Gould <ted@gould.cx> | 2013-05-29 16:35:29 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-05-29 16:35:29 +0000 |
commit | d652787d2dcbb06be48bdee3344760e30757a36f (patch) | |
tree | 91fa3496af2d7cbe650d0ed43faf4c48af036743 | |
parent | ae198af4a8d3ea34d308aff1754052f364f398d6 (diff) | |
parent | b46f29a05653df595eeaba2557671ab6e2a2467d (diff) | |
download | libayatana-indicator-d652787d2dcbb06be48bdee3344760e30757a36f.tar.gz libayatana-indicator-d652787d2dcbb06be48bdee3344760e30757a36f.tar.bz2 libayatana-indicator-d652787d2dcbb06be48bdee3344760e30757a36f.zip |
Migrating away from deprecated gtk_icon_info_free().
Approved by PS Jenkins bot, Lars Uebernickel.
-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 } } |