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:
@@ -6,6 +6,7 @@
|
|||||||
// Created: 17/09/98
|
// Created: 17/09/98
|
||||||
// RCS-ID: $Id$
|
// RCS-ID: $Id$
|
||||||
// Copyright: (c) Julian Smart
|
// Copyright: (c) Julian Smart
|
||||||
|
// (c) 2013 Rob Bresalier
|
||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
@@ -16,6 +17,8 @@
|
|||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wx/private/eventloopsourcesmanager.h"
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// declarations
|
// declarations
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@@ -390,3 +393,27 @@ wxString wxGetXEventName(XEvent& event)
|
|||||||
#endif
|
#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
|
||||||
|
Reference in New Issue
Block a user