summaryrefslogtreecommitdiff
path: root/plugins/filebrowser
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-07-30 14:49:45 +0200
committerraveit65 <[email protected]>2016-07-30 14:50:27 +0200
commit213b8927e2be917191e100661410ef4facd7d3a3 (patch)
treede81c17c7bf0ebf84ef35f441c527fc3bc6406e4 /plugins/filebrowser
parent75263e708b69711eafec10ede52a31edbb4e2450 (diff)
downloadpluma-213b8927e2be917191e100661410ef4facd7d3a3.tar.bz2
pluma-213b8927e2be917191e100661410ef4facd7d3a3.tar.xz
GTK+-3: avoid deprecated gtk_icon_info_free ()
replace it with g_object_unref ()
Diffstat (limited to 'plugins/filebrowser')
-rw-r--r--plugins/filebrowser/pluma-file-browser-utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/filebrowser/pluma-file-browser-utils.c b/plugins/filebrowser/pluma-file-browser-utils.c
index 8c1b6a3b..8ffabfbe 100644
--- a/plugins/filebrowser/pluma-file-browser-utils.c
+++ b/plugins/filebrowser/pluma-file-browser-utils.c
@@ -94,7 +94,11 @@ pluma_file_browser_utils_pixbuf_from_icon (GIcon * icon,
return NULL;
ret = gtk_icon_info_load_icon (info, NULL);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ g_object_unref (info);
+#else
gtk_icon_info_free (info);
+#endif
return ret;
}