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:
@@ -175,7 +175,12 @@ void wxButton::SetLabel( const wxString &label )
|
||||
|
||||
wxControl::SetLabel( label );
|
||||
|
||||
#ifdef __WXGTK20__
|
||||
wxString label2 = PrepareLabelMnemonics( label );
|
||||
gtk_label_set_text_with_mnemonic( GTK_LABEL( BUTTON_CHILD(m_widget) ), wxGTK_CONV( label2 ) );
|
||||
#else
|
||||
gtk_label_set( GTK_LABEL( BUTTON_CHILD(m_widget) ), wxGTK_CONV( GetLabel() ) );
|
||||
#endif
|
||||
}
|
||||
|
||||
bool wxButton::Enable( bool enable )
|
||||
|
Reference in New Issue
Block a user