From 213b8927e2be917191e100661410ef4facd7d3a3 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sat, 30 Jul 2016 14:49:45 +0200 Subject: GTK+-3: avoid deprecated gtk_icon_info_free () replace it with g_object_unref () --- plugins/filebrowser/pluma-file-browser-utils.c | 4 ++++ pluma/pluma-tab.c | 4 ++++ 2 files changed, 8 insertions(+) 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; } diff --git a/pluma/pluma-tab.c b/pluma/pluma-tab.c index 723dfaf1..7ceac758 100644 --- a/pluma/pluma-tab.c +++ b/pluma/pluma-tab.c @@ -1847,7 +1847,11 @@ get_icon (GtkIconTheme *theme, return get_stock_icon (theme, GTK_STOCK_FILE, size); pixbuf = gtk_icon_info_load_icon (icon_info, NULL); +#if GTK_CHECK_VERSION (3, 0, 0) + g_object_unref (icon_info); +#else gtk_icon_info_free (icon_info); +#endif if (pixbuf == NULL) return get_stock_icon (theme, GTK_STOCK_FILE, size); -- cgit v1.2.1