summaryrefslogtreecommitdiff
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
parent75263e708b69711eafec10ede52a31edbb4e2450 (diff)
downloadpluma-213b8927e2be917191e100661410ef4facd7d3a3.tar.bz2
pluma-213b8927e2be917191e100661410ef4facd7d3a3.tar.xz
GTK+-3: avoid deprecated gtk_icon_info_free ()
replace it with g_object_unref ()
-rw-r--r--plugins/filebrowser/pluma-file-browser-utils.c4
-rw-r--r--pluma/pluma-tab.c4
2 files changed, 8 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;
}
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);