#endif
#include "unistd.h"
+// add more here if you run into problems
+#if defined(__SUN__) && !defined(__SunOs_5_6) && !defined(__SunOs_5_7) && !defined(__SUNPRO_CC)
+extern "C"
+{
+void usleep(unsigned long usec);
+};
+#endif
+
#include "glib.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include "wx/gtk/win_gtk.h"
+#include <unistd.h> // usleep() on solaris
+
//-----------------------------------------------------------------------------
// global data
//-----------------------------------------------------------------------------
wxIdleEvent event;
event.SetEventObject(win);
+
+ win->OnInternalIdle();
+
win->ProcessEvent(event);
if (event.MoreRequested())
wxSystemSettings::Init();
+/*
wxTheFontNameDirectory = new wxFontNameDirectory;
wxTheFontNameDirectory->Initialize();
+*/
wxTheColourDatabase = new wxColourDatabase( wxKEY_STRING );
wxTheColourDatabase->Initialize();
if (wxTheColourDatabase) delete wxTheColourDatabase;
wxTheColourDatabase = (wxColourDatabase*) NULL;
+/*
if (wxTheFontNameDirectory) delete wxTheFontNameDirectory;
wxTheFontNameDirectory = (wxFontNameDirectory*) NULL;
+*/
wxDeleteStockObjects();
delete wxTheApp;
wxTheApp = (wxApp*) NULL;
+ wxSystemSettings::Done();
+
+ delete[] wxBuffer;
+
+ wxClassInfo::CleanUpClasses();
+
/* check for memory leaks */
#if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
if (wxDebugContext::CountObjectsLeft() > 0)
wxLog *oldLog = wxLog::SetActiveTarget( (wxLog*) NULL );
if (oldLog) delete oldLog;
-
- wxSystemSettings::Done();
-
- wxClassInfo::CleanUpClasses();
-
- delete[] wxBuffer;
}
wxLog *wxApp::CreateLogTarget()