]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix [ 1574240 ] wx.RadioButton doesn't navigate correctly
authorRobert Roebling <robert@roebling.de>
Wed, 11 Oct 2006 20:54:21 +0000 (20:54 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 11 Oct 2006 20:54:21 +0000 (20:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index 11567f27fbebb9b3ebd4a49585892d4802e672d9..5ed6e3a754601076d6ee0120ddf74a08caafa775 100644 (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