compilation fixes for wxUSE_ACCEL=0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -110,7 +110,7 @@ void wxFrame::DoGetClientSize( int *width, int *height ) const
|
||||
*height = 0;
|
||||
}
|
||||
|
||||
#if wxUSE_MENUS
|
||||
#if wxUSE_MENUS && wxUSE_ACCEL
|
||||
// Helper for wxCreateAcceleratorTableForMenuBar
|
||||
static void wxAddAccelerators(wxList& accelEntries, wxMenu* menu)
|
||||
{
|
||||
@@ -166,21 +166,21 @@ static wxAcceleratorTable wxCreateAcceleratorTableForMenuBar(wxMenuBar* menuBar)
|
||||
|
||||
return table;
|
||||
}
|
||||
#endif
|
||||
#endif // wxUSE_MENUS && wxUSE_ACCEL
|
||||
|
||||
bool wxFrame::ShowFullScreen(bool show, long style)
|
||||
{
|
||||
if (!wxFrameBase::ShowFullScreen(show, style))
|
||||
return false;
|
||||
|
||||
#if wxUSE_MENUS
|
||||
#if wxUSE_MENUS && wxUSE_ACCEL
|
||||
if (show && GetMenuBar())
|
||||
{
|
||||
wxAcceleratorTable table(wxCreateAcceleratorTableForMenuBar(GetMenuBar()));
|
||||
if (table.IsOk())
|
||||
SetAcceleratorTable(table);
|
||||
}
|
||||
#endif
|
||||
#endif // wxUSE_MENUS && wxUSE_ACCEL
|
||||
|
||||
wxWindow* const bar[] = {
|
||||
#if wxUSE_MENUS
|
||||
|
Reference in New Issue
Block a user