X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a1873279648582e6af46f9103460da50bf5e03b9..4d2df97f6c86982383f1fb4beb45d66ab1e41879:/include/wx/unix/apptrait.h?ds=sidebyside diff --git a/include/wx/unix/apptrait.h b/include/wx/unix/apptrait.h index 8e1d0d73c9..fe5639731a 100644 --- a/include/wx/unix/apptrait.h +++ b/include/wx/unix/apptrait.h @@ -16,7 +16,7 @@ // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxConsoleAppTraits : public wxConsoleAppTraitsBase +class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase { public: #if wxUSE_CONSOLE_EVENTLOOP @@ -44,6 +44,10 @@ public: #if wxUSE_TIMER virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer); #endif +#if wxUSE_THREADS && defined(__WXGTK20__) + virtual void MutexGuiEnter(); + virtual void MutexGuiLeave(); +#endif #if (defined(__WXMAC__) || defined(__WXCOCOA__)) && wxUSE_STDPATHS virtual wxStandardPathsBase& GetStandardPaths(); @@ -63,6 +67,17 @@ public: #if defined(__WXDEBUG__) && defined(__WXGTK20__) virtual bool ShowAssertDialog(const wxString& msg); #endif + + // GTK+ and Motif integrate sockets directly in their main loop, the other + // Unix ports do it at wxEventLoop level + // + // TODO: Should we use XtAddInput() for wxX11 too? Or, vice versa, if there + // is no advantage in doing this compared to the generic way + // currently used by wxX11, should we continue to use GTK/Motif- + // specific stuff? +#if wxUSE_SOCKETS && (defined(__WXGTK__) || defined(__WXMOTIF__)) + virtual GSocketManager *GetSocketManager(); +#endif }; #endif // wxUSE_GUI