summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryetist <[email protected]>2015-06-19 22:02:35 +0800
committerinfirit <[email protected]>2015-08-26 14:44:57 +0200
commitf22c5a77f194d54d811cb21916edb5f1fa909b53 (patch)
treea7f0218c0898577ae279c35c2b7590e748bac6f8
parentc5d35e84d1b2b8c3df8406fdaf4c35b605792421 (diff)
downloadmate-panel-f22c5a77f194d54d811cb21916edb5f1fa909b53.tar.bz2
mate-panel-f22c5a77f194d54d811cb21916edb5f1fa909b53.tar.xz
Gtk3: Don't use deperated gtk_icon_info_free
-rw-r--r--mate-panel/panel-util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mate-panel/panel-util.c b/mate-panel/panel-util.c
index 6bd78c34..49048289 100644
--- a/mate-panel/panel-util.c
+++ b/mate-panel/panel-util.c
@@ -323,7 +323,11 @@ panel_find_icon (GtkIconTheme *icon_theme,
if (info) {
retval = g_strdup (gtk_icon_info_get_filename (info));
+#if GTK_CHECK_VERSION (3, 8, 0)
+ g_object_unref (info);
+#else
gtk_icon_info_free (info);
+#endif
} else
retval = NULL;