[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 1396
Date       : Sat Jul  1 21:00:54 BST 2006

Changed paths:
   M /Trunk/XaraLX/wxXtra/advsplash.cpp

Defer calling Create until we are in the wxAdvSplashScreen constructor itself, so the RTTI is right on the Create event on the Mac.


Diff:
Index: Trunk/XaraLX/wxXtra/advsplash.cpp
===================================================================
--- Trunk/XaraLX/wxXtra/advsplash.cpp	(revision 1395)
+++ Trunk/XaraLX/wxXtra/advsplash.cpp	(revision 1396)
@@ -33,9 +33,12 @@
  * slightly too small.
  */
 
-wxAdvSplashScreen::wxAdvSplashScreen(const wxBitmap& bitmap, long splashStyle, int milliseconds, wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style):
-    wxFrame(parent, id, wxEmptyString, wxPoint(0,0), wxSize(100, 100), style)
+wxAdvSplashScreen::wxAdvSplashScreen(const wxBitmap& bitmap, long splashStyle, int milliseconds, wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style)
 {
+    // Do the create here, not as a chained constructor, so the
+    // RTTI is in place for the Mac which sends events immediately
+    Create(parent, id, wxEmptyString, wxPoint(0,0), wxSize(100, 100), style);
+
     // At least for GTK+ 2.0, this hint is not available.
 #if defined(__WXGTK20__)
 #if GTK_CHECK_VERSION(2,2,0)


Xara