}
}
- 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);
wxControl::SetLabel( label );
GtkLabel *g_label = GTK_LABEL( BUTTON_CHILD(m_widget) );
- gtk_label_set( g_label, GetLabel().mbc_str() );
+#ifdef __WXGTK20__
+ wxString label2 = PrepareLabelMnemonics( label );
+ gtk_label_set_text_with_mnemonic( g_label, wxGTK_CONV( label2 ) );
+#else
+ gtk_label_set( g_label, wxGTK_CONV( GetLabel() ) );
+#endif
}
void wxRadioButton::SetValue( bool val )
}
}
- UpdateWindowUI();
+ if (wxUpdateUIEvent::CanUpdate())
+ UpdateWindowUI();
}
wxSize wxRadioButton::DoGetBestSize() const