X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f5d29b396f837cab85b8d63992cc1b640007db67..518b5d2ffbaf7422195537a5512e791be4497591:/src/gtk/radiobut.cpp?ds=inline diff --git a/src/gtk/radiobut.cpp b/src/gtk/radiobut.cpp index aab86976cd..b1dd17479f 100644 --- a/src/gtk/radiobut.cpp +++ b/src/gtk/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; @@ -87,6 +90,7 @@ bool wxRadioButton::Create( wxWindow *parent, wxWindowID id, const wxString& lab SetBackgroundColour( parent->GetBackgroundColour() ); SetForegroundColour( parent->GetForegroundColour() ); + SetFont( parent->GetFont() ); Show( TRUE ); @@ -107,6 +111,9 @@ void wxRadioButton::SetValue( bool val ) { wxCHECK_RET( m_widget != NULL, "invalid radiobutton" ); + if ( val == GetValue() ) + return; + m_blockFirstEvent = TRUE; if (val)