Compile fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -512,19 +512,6 @@ protected:
|
|||||||
DECLARE_NO_COPY_CLASS(wxMenuBarBase)
|
DECLARE_NO_COPY_CLASS(wxMenuBarBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
#if WXWIN_COMPATIBILITY_2_8
|
|
||||||
// get or change the label of the menu at given position
|
|
||||||
void wxMenuBarBase::SetLabelTop(size_t pos, const wxString& label)
|
|
||||||
{
|
|
||||||
SetMenuLabel(pos, label);
|
|
||||||
}
|
|
||||||
|
|
||||||
wxString wxMenuBarBase::GetLabelTop(size_t pos) const
|
|
||||||
{
|
|
||||||
return GetMenuLabel(pos);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// include the real class declaration
|
// include the real class declaration
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -858,8 +858,9 @@ void MyFrame::OnGetLabelMenuItem(wxCommandEvent& WXUNUSED(event))
|
|||||||
|
|
||||||
if ( item )
|
if ( item )
|
||||||
{
|
{
|
||||||
|
wxString label = item->GetItemLabel();
|
||||||
wxLogMessage(_T("The label of the last menu item is '%s'"),
|
wxLogMessage(_T("The label of the last menu item is '%s'"),
|
||||||
item->GetLabel().c_str());
|
label.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -307,7 +307,7 @@ int wxMenuBase::FindItem(const wxString& text) const
|
|||||||
// name just like the ordinary items
|
// name just like the ordinary items
|
||||||
if ( !item->IsSeparator() )
|
if ( !item->IsSeparator() )
|
||||||
{
|
{
|
||||||
if ( item->GetLabel() == label )
|
if ( item->GetItemLabelText() == label )
|
||||||
return item->GetId();
|
return item->GetId();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -839,4 +839,18 @@ void wxMenuBarBase::UpdateMenus( void )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if WXWIN_COMPATIBILITY_2_8
|
||||||
|
// get or change the label of the menu at given position
|
||||||
|
void wxMenuBarBase::SetLabelTop(size_t pos, const wxString& label)
|
||||||
|
{
|
||||||
|
SetMenuLabel(pos, label);
|
||||||
|
}
|
||||||
|
|
||||||
|
wxString wxMenuBarBase::GetLabelTop(size_t pos) const
|
||||||
|
{
|
||||||
|
return GetMenuLabel(pos);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif // wxUSE_MENUS
|
#endif // wxUSE_MENUS
|
||||||
|
Reference in New Issue
Block a user