diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-06-22 11:00:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-06-22 11:33:58 +0100 |
commit | 8488b3ba00e23e8ae6e089f450965c93c7a13d26 (patch) | |
tree | aa2c6bc5e5a2a3cbc597cc849b8aaf1854f3c8ee /vcl | |
parent | 911c4d8472303053c19b14457a533d8b2f0a2ea9 (diff) |
G_MENU_ATTRIBUTE_ICON is only in glib >= 2.38
Change-Id: I7761ac05fbc9be39a6982ba66054c75a331816be
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk/glomenu.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/unx/gtk/glomenu.cxx b/vcl/unx/gtk/glomenu.cxx index aab6857f0018..f91a46985dde 100644 --- a/vcl/unx/gtk/glomenu.cxx +++ b/vcl/unx/gtk/glomenu.cxx @@ -248,6 +248,10 @@ g_lo_menu_set_icon (GLOMenu *menu, else value = nullptr; +#ifndef G_MENU_ATTRIBUTE_ICON +# define G_MENU_ATTRIBUTE_ICON "icon" +#endif + g_lo_menu_set_attribute_value (menu, position, G_MENU_ATTRIBUTE_ICON, value); } |