Fix inserting radio menu items in wxGTK too.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 May 2011 08:50:47 +0000 (08:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 May 2011 08:50:47 +0000 (08:50 +0000)
commita0828629870da7f34bfe1f1c73441fde1ad7ec73
treeef3df69814f34e01ffa0ea8ee412a5389b3f5e49
parent89511b42686033f8cb7e8a110580847bc2470b08
Fix inserting radio menu items in wxGTK too.

After fixing the insertion of radio menu items in wxMSW, also do it for wxGTK
to make the newly added unit test pass there as well.

Remove the unneeded wxMenu::m_prevRadio which doesn't make any sense neither
(just as the "current radio group" pointer removed from wxMSW code before) and
simply use the radio group of the existing item this radio item is being
inserted before or after instead.

See #13200.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/gtk/menu.h
src/gtk/menu.cpp