]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/colordlg.cpp
more wxUniv compilation fixes (bug 1085003)
[wxWidgets.git] / src / mac / carbon / colordlg.cpp
index 134e40f445d2a60f13e5d72894b7f8fa70fe2124..6ca035476126cca94163014c5e3ecfdb283b56d6 100644 (file)
 #endif
 
 #include "wx/mac/colordlg.h"
+#include "wx/fontdlg.h"
+
+
+#if !USE_NATIVE_FONT_DIALOG_FOR_MACOSX
 
 #if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxColourDialog, wxDialog)
@@ -51,13 +55,13 @@ bool wxColourDialog::Create(wxWindow *parent, wxColourData *data)
 int wxColourDialog::ShowModal()
 {
     Point where ;
-    RGBColor currentColor = *((RGBColor*)m_colourData.dataColour.GetPixel()) , newColor ;
+    RGBColor currentColor = *((RGBColor*)m_colourData.m_dataColour.GetPixel()) , newColor ;
     
     where.h = where.v = -1;
 
     if (GetColor( where, "\pSelect a new palette color.", &currentColor, &newColor ))
     {
-        m_colourData.dataColour.Set( (WXCOLORREF*) &newColor ) ;
+        m_colourData.m_dataColour.Set( (WXCOLORREF*) &newColor ) ;
         return wxID_OK;
     }
     else
@@ -68,3 +72,4 @@ int wxColourDialog::ShowModal()
     return wxID_CANCEL;
 }
 
+#endif