diff --git a/src/gtk/control.cpp b/src/gtk/control.cpp index ee15a56961..d339e25aeb 100644 --- a/src/gtk/control.cpp +++ b/src/gtk/control.cpp @@ -208,7 +208,11 @@ wxString wxControl::GTKRemoveMnemonics(const wxString& label) /* static */ wxString wxControl::GTKConvertMnemonics(const wxString& label) { +#ifdef __WXGTK20__ return GTKProcessMnemonics(label, MNEMONICS_CONVERT); +#else + return GTKRemoveMnemonics(label); +#endif } // ---------------------------------------------------------------------------- diff --git a/src/gtk1/control.cpp b/src/gtk1/control.cpp index ee15a56961..d339e25aeb 100644 --- a/src/gtk1/control.cpp +++ b/src/gtk1/control.cpp @@ -208,7 +208,11 @@ wxString wxControl::GTKRemoveMnemonics(const wxString& label) /* static */ wxString wxControl::GTKConvertMnemonics(const wxString& label) { +#ifdef __WXGTK20__ return GTKProcessMnemonics(label, MNEMONICS_CONVERT); +#else + return GTKRemoveMnemonics(label); +#endif } // ----------------------------------------------------------------------------