#include "wx/apptrait.h"
#include "wx/evtloop.h"
+#include "wx/motif/private/timer.h"
#include <string.h>
return wxPORT_MOTIF;
}
+wxEventLoopBase* wxGUIAppTraits::CreateEventLoop()
+{
+ return new wxEventLoop;
+}
+
+wxTimerImpl* wxGUIAppTraits::CreateTimerImpl(wxTimer* timer)
+{
+ return new wxMotifTimerImpl(timer);
+}
+
// ----------------------------------------------------------------------------
// display info
// ----------------------------------------------------------------------------
// Change a widget's foreground and background colours.
void wxDoChangeForegroundColour(WXWidget widget, wxColour& foregroundColour)
{
+ if (!foregroundColour.Ok())
+ return;
+
// When should we specify the foreground, if it's calculated
// by wxComputeColours?
// Solution: say we start with the default (computed) foreground colour.
void wxDoChangeBackgroundColour(WXWidget widget, const wxColour& backgroundColour, bool changeArmColour)
{
+ if (!backgroundColour.Ok())
+ return;
+
wxComputeColours (XtDisplay((Widget) widget), & backgroundColour,
(wxColour*) NULL);