summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-06-06 13:07:33 +0200
committerinfirit <[email protected]>2014-06-06 13:07:33 +0200
commite638c96fd7a859842bf85a0699dba987467c6899 (patch)
tree9a92f1935fb4b0b865e4522ee22019e3c2dc6280
parent37d47fa524ae742776ece9a45b45451da79ef51d (diff)
downloadlibmatekbd-e638c96fd7a859842bf85a0699dba987467c6899.tar.bz2
libmatekbd-e638c96fd7a859842bf85a0699dba987467c6899.tar.xz
Revert "Use g_object_unref also for Gtk+2"
This reverts commit ecd4ea6300405147d9a5c4f5afb3f9f46272cd4a.
-rw-r--r--libmatekbd/matekbd-indicator-config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmatekbd/matekbd-indicator-config.c b/libmatekbd/matekbd-indicator-config.c
index d6c9201..18bb994 100644
--- a/libmatekbd/matekbd-indicator-config.c
+++ b/libmatekbd/matekbd-indicator-config.c
@@ -162,7 +162,11 @@ matekbd_indicator_config_get_images_file (MatekbdIndicatorConfig *
if (icon_info != NULL) {
image_file =
g_strdup (gtk_icon_info_get_filename (icon_info));
+#if GTK_CHECK_VERSION (3, 8, 0)
g_object_unref (icon_info);
+#else
+ gtk_icon_info_free (icon_info);
+#endif
}
return image_file;