summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-06-22 10:27:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-06-22 10:28:21 +0100
commit692c4b3c8535b7886a34f1c4138e0984374d3665 (patch)
tree9dc22e81dd9e40c49d2227e06ab91580c09a625d /vcl
parent7acb934bc6765316b05e31fe56e9ff706c533c33 (diff)
g_icon_serialize is only in glib >= 2.38
Change-Id: I824ebd9083bd702e90f577471248be43707cc811 (cherry picked from commit 1ad4575723a91883b8c179e247fd06d822ca7f84)
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk/glomenu.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/unx/gtk/glomenu.cxx b/vcl/unx/gtk/glomenu.cxx
index ffa43e52c125..aab6857f0018 100644
--- a/vcl/unx/gtk/glomenu.cxx
+++ b/vcl/unx/gtk/glomenu.cxx
@@ -238,7 +238,13 @@ g_lo_menu_set_icon (GLOMenu *menu,
GVariant *value;
if (icon != nullptr)
+ {
+#if GLIB_CHECK_VERSION(2,38,0)
value = g_icon_serialize (const_cast<GIcon*>(icon));
+#else
+ value = nullptr;
+#endif
+ }
else
value = nullptr;