X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7fa7eaa2dc8ef4154ac4d9d739bcfb6be1669ac..04c79127659115628c316cc8f42e7132fd07bb0f:/src/gtk1/radiobut.cpp diff --git a/src/gtk1/radiobut.cpp b/src/gtk1/radiobut.cpp index 92b78d4223..fad83bc1b1 100644 --- a/src/gtk1/radiobut.cpp +++ b/src/gtk1/radiobut.cpp @@ -64,13 +64,17 @@ void gtk_radiobutton_clicked_callback( GtkToggleButton *button, wxRadioButton *r IMPLEMENT_DYNAMIC_CLASS(wxRadioButton,wxControl) -bool wxRadioButton::Create( wxWindow *parent, wxWindowID id, const wxString& label, - const wxPoint& pos, const wxSize& size, long style, - const wxValidator& validator, const wxString& name ) +bool wxRadioButton::Create( wxWindow *parent, + wxWindowID id, + const wxString& label, + const wxPoint& pos, + const wxSize& size, + long style, + const wxValidator& validator, + const wxString& name ) { m_acceptsFocus = TRUE; m_needParent = TRUE; - m_isRadioButton = TRUE; m_blockEvent = FALSE; @@ -94,10 +98,11 @@ bool wxRadioButton::Create( wxWindow *parent, wxWindowID id, const wxString& lab while (node) { wxWindow *child = node->GetData(); - if (child->m_isRadioButton) + if (child->IsRadioButton()) { chief = (wxRadioButton*) child; - if (child->HasFlag(wxRB_GROUP)) break; + if (child->HasFlag(wxRB_GROUP)) + break; } node = node->GetPrevious(); } @@ -113,7 +118,7 @@ bool wxRadioButton::Create( wxWindow *parent, wxWindowID id, const wxString& lab } } - m_widget = gtk_radio_button_new_with_label( m_radioButtonGroup, label.mbc_str() ); + m_widget = gtk_radio_button_new_with_label( m_radioButtonGroup, wxGTK_CONV( label ) ); SetLabel(label); @@ -149,7 +154,7 @@ void wxRadioButton::SetLabel( const wxString& label ) wxControl::SetLabel( label ); GtkLabel *g_label = GTK_LABEL( BUTTON_CHILD(m_widget) ); - gtk_label_set( g_label, GetLabel().mbc_str() ); + gtk_label_set( g_label, wxGTK_CONV( GetLabel() ) ); } void wxRadioButton::SetValue( bool val )