#include "wx/apptrait.h"
#include "wx/process.h"
#include "wx/sysopt.h"
+#ifdef __UNIX__
#include "wx/unix/execute.h"
+#endif
#include "wx/gtk/private/timer.h"
#include "wx/evtloop.h"
// subprocess routines
// ----------------------------------------------------------------------------
+#ifdef __UNIX__
+
extern "C" {
static gboolean EndProcessDetector(GIOChannel* source, GIOCondition, void* data)
{
return int(id);
}
-
+#endif // __UNIX__
// ----------------------------------------------------------------------------
// wxPlatformInfo-related
}
-#if wxUSE_INTL
+#if wxUSE_INTL && defined(__UNIX__)
void wxGUIAppTraits::SetLocale()
{
gtk_set_locale();
}
#endif
+#ifdef __UNIX__
+
#if wxDEBUG_LEVEL && wxUSE_STACKWALKER
// private helper class
return wxAppTraitsBase::ShowAssertDialog(msg);
}
+#endif // __UNIX__
+
+#if defined(__UNIX__) || defined(__OS2__)
+
wxString wxGUIAppTraits::GetDesktopEnvironment() const
{
wxString de = wxSystemOptions::GetOption(wxT("gtk.desktop"));
return de;
}
+#endif // __UNIX__ || __OS2__
+
#ifdef __WXGTK26__
// see the hack below in wxCmdLineParser::GetUsageString().
#endif // __WXGTK26__
+#ifdef __UNIX__
+
wxString
wxGUIAppTraits::GetStandardCmdLineOptions(wxArrayString& names,
wxArrayString& desc) const
return usage;
}
+#endif // __UNIX__