diff options
author | monsta <[email protected]> | 2016-01-15 16:33:41 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-15 16:33:41 +0300 |
commit | 25ae262342f5f0011bd43a824ab41803f4233049 (patch) | |
tree | c05d745ebbe2d26337b6a9d6c975accf63fe5704 /capplets | |
parent | cc82c832c8ffaaac575e867446a11395c5a61df4 (diff) | |
download | mate-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')
-rw-r--r-- | capplets/common/theme-thumbnail.c | 4 |
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); |