Fix wxRadioButtons without explicit wxRB_GROUP styles in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 4 Apr 2012 22:30:30 +0000 (22:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 4 Apr 2012 22:30:30 +0000 (22:30 +0000)
commita45c6a892ca8e3dd275138607700ceacd7d2504f
tree7f28312b34c0d4c93da260faf221f5067bbb3d64
parent0408c49fb954d901c747a56efa4bab73fc318c26
Fix wxRadioButtons without explicit wxRB_GROUP styles in wxGTK.

If two radio buttons are created consecutively, they should be part of the
same radio group, even if wxRB_GROUP hadn't been explicitly used for the first
of them.

Do this is for consistency with wxMSW and also because the alternative
behaviour doesn't make much sense.

Also stop iterating too far backwards when searching for the group to be used
for a new radio button and add comments explaining what's going on here.

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