X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dde19c2180ef8d6415af7bb2492bfcb0a2d5c7e4..a7689c49fe02c0c065facf736ab28b19f5997b7c:/include/wx/gtk/evtloop.h diff --git a/include/wx/gtk/evtloop.h b/include/wx/gtk/evtloop.h index 36c62e168e..d083567862 100644 --- a/include/wx/gtk/evtloop.h +++ b/include/wx/gtk/evtloop.h @@ -15,6 +15,8 @@ // wxGUIEventLoop for wxGTK // ---------------------------------------------------------------------------- +typedef union _GdkEvent GdkEvent; + class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxEventLoopBase { public: @@ -28,8 +30,15 @@ public: virtual void WakeUp(); virtual bool YieldFor(long eventsToProcess); -protected: +#if wxUSE_EVENTLOOP_SOURCE + virtual wxEventLoopSource * + AddSourceForFD(int fd, wxEventLoopSourceHandler *handler, int flags); +#endif // wxUSE_EVENTLOOP_SOURCE + + void StoreGdkEventForLaterProcessing(GdkEvent* ev) + { m_arrGdkEvents.Add(ev); } +private: // the exit code of this event loop int m_exitcode;