X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f5d29b396f837cab85b8d63992cc1b640007db67..cce4b3fe2b05e1d928d7a5930c33c624b2f3a667:/src/gtk1/radiobut.cpp diff --git a/src/gtk1/radiobut.cpp b/src/gtk1/radiobut.cpp index aab86976cd..abf7ac99f2 100644 --- a/src/gtk1/radiobut.cpp +++ b/src/gtk1/radiobut.cpp @@ -13,6 +13,8 @@ #endif #include "wx/radiobut.h" +#include "gdk/gdk.h" +#include "gtk/gtk.h" //----------------------------------------------------------------------------- // data @@ -53,6 +55,7 @@ bool wxRadioButton::Create( wxWindow *parent, wxWindowID id, const wxString& lab const wxPoint& pos, const wxSize& size, long style, const wxValidator& validator, const wxString& name ) { + m_acceptsFocus = TRUE; m_needParent = TRUE; wxSize newSize = size; @@ -107,6 +110,9 @@ void wxRadioButton::SetValue( bool val ) { wxCHECK_RET( m_widget != NULL, "invalid radiobutton" ); + if ( val == GetValue() ) + return; + m_blockFirstEvent = TRUE; if (val)