]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/busyinfo.cpp
really show the window after creation (calling Show(TRUE) doesn't do it any more)
[wxWidgets.git] / src / generic / busyinfo.cpp
index 830546db0c78d373d24c09ceb179048431b9d31b..69ebc54eaddec746bb504515481a7b8d7bc84eb9 100644 (file)
@@ -6,7 +6,7 @@
 // Licence:     wxWindows Licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "busyinfo.h"
 #endif
 
@@ -105,9 +105,13 @@ wxBusyInfo::wxBusyInfo(const wxString& message, wxWindow *parent)
 {
     m_InfoFrame = new wxInfoFrame( parent, message);
     m_InfoFrame->Show(TRUE);
+#ifdef __WXMAC__
+       m_InfoFrame->Update() ;
+#else
     wxYield();
     m_InfoFrame->Refresh();
     wxYield();
+#endif
 }
 
 wxBusyInfo::~wxBusyInfo()