From ccb5db57cdb1766eefb7023dda50ede9f0d01f78 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Wed, 11 Oct 2006 20:54:21 +0000 Subject: [PATCH] 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 --- src/gtk/window.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 11567f27fb..5ed6e3a754 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -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