summaryrefslogtreecommitdiff
path: root/capplets/common
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-15 16:33:41 +0300
committermonsta <[email protected]>2016-01-15 16:33:41 +0300
commit25ae262342f5f0011bd43a824ab41803f4233049 (patch)
treec05d745ebbe2d26337b6a9d6c975accf63fe5704 /capplets/common
parentcc82c832c8ffaaac575e867446a11395c5a61df4 (diff)
downloadmate-control-center-25ae262342f5f0011bd43a824ab41803f4233049.tar.bz2
mate-control-center-25ae262342f5f0011bd43a824ab41803f4233049.tar.xz
[GTK+3] common: use g_object_unref instead of deprecated function
Diffstat (limited to 'capplets/common')
-rw-r--r--capplets/common/theme-thumbnail.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/capplets/common/theme-thumbnail.c b/capplets/common/theme-thumbnail.c
index 9cd047f5..198cb4de 100644
--- a/capplets/common/theme-thumbnail.c
+++ b/capplets/common/theme-thumbnail.c
@@ -213,7 +213,11 @@ create_folder_icon (char *icon_theme_name)
if (folder_icon_info != NULL)
{
folder_icon = gtk_icon_info_load_icon (folder_icon_info, NULL);
+#if GTK_CHECK_VERSION (3, 8, 0)
+ g_object_unref (folder_icon_info);
+#else
gtk_icon_info_free (folder_icon_info);
+#endif
}
g_object_unref (icon_theme);