Define wxSetDetectableAutoRepeat() for X11-based ports only.
This function is not needed in wxGTK2 as GTK+ sets detectable auto-repeat on its own in gdk_display_open() anyhow, so move its implementation to src/x11/utilsx.cpp where it can be used by wxX11 and wxMotif which do need it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -923,12 +923,15 @@ void wxQsort(void *const pbase, size_t total_elems,
|
||||
|
||||
#if wxUSE_GUI
|
||||
|
||||
#ifndef __WXGTK__
|
||||
// this function is only really implemented for X11-based ports, including GTK1
|
||||
// (GTK2 sets detectable auto-repeat automatically anyhow)
|
||||
#if !(defined(__WXX11__) || defined(__WXMOTIF__) || \
|
||||
(defined(__WXGTK__) && !defined(__WXGTK20__)))
|
||||
bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) )
|
||||
{
|
||||
return true; // detectable auto-repeat is the only mode MSW supports
|
||||
return true;
|
||||
}
|
||||
#endif // !wxGTK
|
||||
#endif // !X11-based port
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Launch default browser
|
||||
|
Reference in New Issue
Block a user