diff options
-rw-r--r-- | vcl/unx/gtk/glomenu.cxx | 6 |
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; |