// Author: Julian Smart
// Modified by:
// Created: 17/09/98
-// RCS-ID: $Id$
// Copyright: (c) Julian Smart
+// (c) 2013 Rob Bresalier
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#pragma hdrstop
#endif
+#include "wx/private/eventloopsourcesmanager.h"
+
// ============================================================================
// declarations
// ============================================================================
#pragma message disable nosimpint
#endif
-#include "wx/unix/execute.h"
-
#include "wx/x11/private.h"
#include "X11/Xutil.h"
#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