summaryrefslogtreecommitdiff
path: root/pluma/pluma-tab.c
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 /pluma/pluma-tab.c
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 'pluma/pluma-tab.c')
-rw-r--r--pluma/pluma-tab.c4
1 files changed, 4 insertions, 0 deletions
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);