From: Vadim Zeitlin Date: Tue, 22 Sep 2009 00:22:38 +0000 (+0000) Subject: Move wxSetDetectableAutoRepeat() to a section compiled in wxCore. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ef3da29bf191dc33ac1182ebad82a5a4e0468266 Move wxSetDetectableAutoRepeat() to a section compiled in wxCore. This function was mistakenly defined in a section of utilscmn.cpp compiled as part of wxBase, so it wasn't correctly exported from the core library and linking any wxX11 applications failed when using compiler with visibility support. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index c33db8913b..3127e80950 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -161,16 +161,6 @@ wxString wxDecToHex(int dec) // misc functions // ---------------------------------------------------------------------------- -// Don't synthesize KeyUp events holding down a key and producing KeyDown -// events with autorepeat. On by default and always on in wxMSW. wxGTK version -// in utilsgtk.cpp. -#ifndef __WXGTK__ -bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) ) -{ - return true; // detectable auto-repeat is the only mode MSW supports -} -#endif // !wxGTK - // Return the current date/time wxString wxNow() { @@ -933,6 +923,13 @@ void wxQsort(void *const pbase, size_t total_elems, #if wxUSE_GUI +#ifndef __WXGTK__ +bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) ) +{ + return true; // detectable auto-repeat is the only mode MSW supports +} +#endif // !wxGTK + // ---------------------------------------------------------------------------- // Launch default browser // ----------------------------------------------------------------------------