Kaydet (Commit) 9ffd6079 authored tarafından Caolán McNamara's avatar Caolán McNamara

g_bytes_icon_new is only in glib >= 2.38

Change-Id: I57f2d016eb6d35d2bc9be090444be1190d68d11d
üst 2822d189
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment