From: Mart Raudsepp Date: Tue, 15 Nov 2005 22:40:32 +0000 (+0000) Subject: Any reason why we #if the menuitem bitmap code in the menu sample? For now just addin... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/671609917492b7c1d0ce514de625b3b3bb064d00?ds=inline Any reason why we #if the menuitem bitmap code in the menu sample? For now just adding wxGTK in addition to wxUSE_OWNER_DRAWN case, for the cases where bitmaps are to be set... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/menu/menu.cpp b/samples/menu/menu.cpp index 5d1c12e335..d1e20a7c32 100644 --- a/samples/menu/menu.cpp +++ b/samples/menu/menu.cpp @@ -55,7 +55,7 @@ #define USE_LOG_WINDOW 0 #endif -#if wxUSE_OWNER_DRAWN +#if wxUSE_OWNER_DRAWN || defined(__WXGTK__) #include "copy.xpm" #endif @@ -381,7 +381,7 @@ MyFrame::MyFrame() #if USE_LOG_WINDOW wxMenuItem *item = new wxMenuItem(fileMenu, Menu_File_ClearLog, _T("Clear &log\tCtrl-L")); -#if wxUSE_OWNER_DRAWN +#if wxUSE_OWNER_DRAWN || defined(__WXGTK__) item->SetBitmap(copy_xpm); #endif fileMenu->Append(item);