added support for GTK2 label mnemonics (patch #689573)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-03-04 23:34:52 +00:00
parent 53eff2a282
commit eaafd2f8b7
11 changed files with 127 additions and 8 deletions

View File

@@ -154,7 +154,12 @@ void wxRadioButton::SetLabel( const wxString& label )
wxControl::SetLabel( label );
GtkLabel *g_label = GTK_LABEL( BUTTON_CHILD(m_widget) );
#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 )