From 4418a9b926589b6b96acafe3546098c9cd6854b1 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Tue, 7 May 2019 14:03:19 +0200 Subject: [PATCH] wxMenuItem::SetDisabledBitmap is only available on Windows --- src/slic3r/GUI/wxExtensions.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/slic3r/GUI/wxExtensions.cpp b/src/slic3r/GUI/wxExtensions.cpp index a58881946..7485d6375 100644 --- a/src/slic3r/GUI/wxExtensions.cpp +++ b/src/slic3r/GUI/wxExtensions.cpp @@ -57,11 +57,6 @@ wxMenuItem* append_menu_item(wxMenu* menu, int id, const wxString& string, const auto *item = new wxMenuItem(menu, id, string, description); if (icon.IsOk()) { item->SetBitmap(icon); -#ifndef __WXMSW__ - wxImage imgGrey = icon.ConvertToImage().ConvertToGreyscale(); - if (imgGrey.IsOk()) - item->SetDisabledBitmap(wxBitmap(imgGrey)); -#endif /* __WXMSW__ */ } menu->Append(item); @@ -100,10 +95,6 @@ wxMenuItem* append_submenu(wxMenu* menu, wxMenu* sub_menu, int id, const wxStrin item->SetBitmap(create_scaled_bitmap(nullptr, icon)); // FIXME: pass window ptr #ifdef __WXMSW__ msw_menuitem_bitmaps[id] = icon; -#else /* __WXMSW__ */ - wxImage imgGrey = icon.ConvertToImage().ConvertToGreyscale(); - if (imgGrey.IsOk()) - item->SetDisabledBitmap(wxBitmap(imgGrey)); #endif /* __WXMSW__ */ }