Get rid of wxMenu::m_startRadioGroup in wxOSX.
This code was probably copied from wxUniv but was wrong as we can't rely on the items being always inserted in order. This commit on its own fixes removing the first radio group menu item but it also makes possible to properly implement the insertion of new items in the middle of an existing radio group which couldn't be done with m_startRadioGroup approach at all. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -33,8 +33,6 @@ public:
|
||||
|
||||
virtual ~wxMenu();
|
||||
|
||||
virtual void Attach(wxMenuBarBase *menubar) ;
|
||||
|
||||
virtual void Break();
|
||||
|
||||
virtual void SetTitle(const wxString& title);
|
||||
@@ -80,9 +78,6 @@ private:
|
||||
// common part of Append/Insert (behaves as Append is pos == (size_t)-1)
|
||||
bool DoInsertOrAppend(wxMenuItem *item, size_t pos = (size_t)-1);
|
||||
|
||||
// terminate the current radio group, if any
|
||||
void EndRadioGroup();
|
||||
|
||||
// Common part of HandleMenu{Opened,Closed}().
|
||||
void DoHandleMenuOpenedOrClosed(wxEventType evtType);
|
||||
|
||||
@@ -96,9 +91,6 @@ private:
|
||||
// don't trigger native events
|
||||
bool m_noEventsMode;
|
||||
|
||||
// the position of the first item in the current radio group or -1
|
||||
int m_startRadioGroup;
|
||||
|
||||
wxMenuImpl* m_peer;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxMenu)
|
||||
|
Reference in New Issue
Block a user