X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2ff89d648e5b73172dc2f4aa84d2aadbdc063ec..749da44287b95c70c2de60adfd8912bf24be60d9:/src/gtk1/control.cpp diff --git a/src/gtk1/control.cpp b/src/gtk1/control.cpp index 735fdd924f..d339e25aeb 100644 --- a/src/gtk1/control.cpp +++ b/src/gtk1/control.cpp @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: control.cpp -// Purpose: +// Name: src/gtk/control.cpp +// Purpose: wxControl implementation for wxGTK // Author: Robert Roebling // Id: $Id$ // Copyright: (c) 1998 Robert Roebling, Julian Smart and Vadim Zeitlin @@ -10,18 +10,21 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#include "wx/defs.h" - #if wxUSE_CONTROLS +#include "wx/log.h" #include "wx/control.h" #include "wx/fontutil.h" #include "wx/settings.h" #include "wx/gtk/private.h" -//----------------------------------------------------------------------------- -// wxControl -//----------------------------------------------------------------------------- +// ============================================================================ +// wxControl implementation +// ============================================================================ + +// ---------------------------------------------------------------------------- +// wxControl creation +// ---------------------------------------------------------------------------- IMPLEMENT_DYNAMIC_CLASS(wxControl, wxWindow) @@ -205,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 } // ----------------------------------------------------------------------------