X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d2a2b601b1994333886dff8f53d82a714c4042f..2a29700ecf3d6862db16c5f5c9086a698a7ff247:/src/gtk1/app.cpp diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index 7b938e7667..78511d556f 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -30,11 +30,20 @@ #endif #include "unistd.h" +#ifdef __SUN__ +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 // usleep() on solaris + //----------------------------------------------------------------------------- // global data //----------------------------------------------------------------------------- @@ -302,6 +311,9 @@ bool wxApp::SendIdleEvents( wxWindow* win ) wxIdleEvent event; event.SetEventObject(win); + + win->OnInternalIdle(); + win->ProcessEvent(event); if (event.MoreRequested()) @@ -381,8 +393,10 @@ bool wxApp::Initialize(void) wxSystemSettings::Init(); +/* wxTheFontNameDirectory = new wxFontNameDirectory; wxTheFontNameDirectory->Initialize(); +*/ wxTheColourDatabase = new wxColourDatabase( wxKEY_STRING ); wxTheColourDatabase->Initialize(); @@ -423,8 +437,10 @@ void wxApp::CleanUp(void) if (wxTheColourDatabase) delete wxTheColourDatabase; wxTheColourDatabase = (wxColourDatabase*) NULL; +/* if (wxTheFontNameDirectory) delete wxTheFontNameDirectory; wxTheFontNameDirectory = (wxFontNameDirectory*) NULL; +*/ wxDeleteStockObjects(); @@ -435,6 +451,12 @@ void wxApp::CleanUp(void) 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) @@ -450,12 +472,6 @@ void wxApp::CleanUp(void) wxLog *oldLog = wxLog::SetActiveTarget( (wxLog*) NULL ); if (oldLog) delete oldLog; - - wxSystemSettings::Done(); - - wxClassInfo::CleanUpClasses(); - - delete[] wxBuffer; } wxLog *wxApp::CreateLogTarget()