Fix [ 1574240 ] wx.RadioButton doesn't navigate correctly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2006-10-11 20:54:21 +00:00
parent 3fd864a139
commit ccb5db57cd

View File

@ -28,6 +28,7 @@
#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/textctrl.h"
#include "wx/radiobut.h"
#include "wx/toolbar.h"
#include "wx/combobox.h"
#include "wx/layout.h"
@ -3373,6 +3374,12 @@ void wxWindowGTK::SetFocus()
{
if (GTK_IS_CONTAINER(m_widget))
{
if (IsKindOf(CLASSINFO(wxRadioButton)))
{
gtk_widget_grab_focus (m_widget);
return;
}
gtk_widget_child_focus( m_widget, GTK_DIR_TAB_FORWARD );
}
else