Add wxX11EventLoopSourcesManager stub implementation to fix wxX11 linking.

Asynchronous wxExecute() still doesn't work in wxX11 but at least the programs
using the library can be linked now.

See #15305.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-07-10 21:15:18 +00:00
parent aad2997b67
commit c5453c7956

View File

@@ -6,6 +6,7 @@
// Created: 17/09/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// (c) 2013 Rob Bresalier
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -16,6 +17,8 @@
#pragma hdrstop
#endif
#include "wx/private/eventloopsourcesmanager.h"
// ============================================================================
// declarations
// ============================================================================
@@ -390,3 +393,27 @@ wxString wxGetXEventName(XEvent& event)
#endif
}
#if wxUSE_EVENTLOOP_SOURCE
class wxX11EventLoopSourcesManager : public wxEventLoopSourcesManagerBase
{
public:
wxEventLoopSource *
AddSourceForFD(int WXUNUSED(fd),
wxEventLoopSourceHandler* WXUNUSED(handler),
int WXUNUSED(flags))
{
wxFAIL_MSG("Monitoring FDs in the main loop is not implemented in wxX11");
return NULL;
}
};
wxEventLoopSourcesManagerBase* wxGUIAppTraits::GetEventLoopSourcesManager()
{
static wxX11EventLoopSourcesManager s_eventLoopSourcesManager;
return &s_eventLoopSourcesManager;
}
#endif // wxUSE_EVENTLOOP_SOURCE