]> git.saurik.com Git - wxWidgets.git/commitdiff
Any reason why we #if the menuitem bitmap code in the menu sample? For now just addin...
authorMart Raudsepp <leio@gentoo.org>
Tue, 15 Nov 2005 22:40:32 +0000 (22:40 +0000)
committerMart Raudsepp <leio@gentoo.org>
Tue, 15 Nov 2005 22:40:32 +0000 (22:40 +0000)
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

samples/menu/menu.cpp

index 5d1c12e335b3ac80559481eeb3a00c49734ba74c..d1e20a7c324cdd306088bb84ba231c770f4d4eba 100644 (file)
@@ -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);