[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara caolanm at redhat.com
Wed Jun 22 10:47:29 UTC 2016


 vcl/unx/gtk/gtksalmenu.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 9ffd60792c0d445f3061d9593c233660799cd401
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Jun 22 11:46:18 2016 +0100

    g_bytes_icon_new is only in glib >= 2.38
    
    Change-Id: I57f2d016eb6d35d2bc9be090444be1190d68d11d

diff --git a/vcl/unx/gtk/gtksalmenu.cxx b/vcl/unx/gtk/gtksalmenu.cxx
index 081ca54..a08917a 100644
--- a/vcl/unx/gtk/gtksalmenu.cxx
+++ b/vcl/unx/gtk/gtksalmenu.cxx
@@ -859,6 +859,7 @@ namespace
 
 void GtkSalMenu::NativeSetItemIcon( unsigned nSection, unsigned nItemPos, const Image& rImage )
 {
+#if GLIB_CHECK_VERSION(2,38,0)
     SolarMutexGuard aGuard;
 
     SvMemoryStream* pMemStm = new SvMemoryStream;
@@ -874,6 +875,11 @@ void GtkSalMenu::NativeSetItemIcon( unsigned nSection, unsigned nItemPos, const
     g_lo_menu_set_icon_to_item_in_section( G_LO_MENU( mpMenuModel ), nSection, nItemPos, pIcon );
     g_object_unref(pIcon);
     g_bytes_unref(pBytes);
+#else
+    (void)nSection;
+    (void)nItemPos;
+    (void)rImage;
+#endif
 }
 
 void GtkSalMenu::NativeSetAccelerator( unsigned nSection, unsigned nItemPos, const vcl::KeyCode& rKeyCode, const OUString& rKeyName )


More information about the Libreoffice-commits mailing list