]> git.saurik.com Git - wxWidgets.git/commitdiff
use both generic and native on osx 10.2 for presentation purposes
authorRyan Norton <wxprojects@comcast.net>
Mon, 27 Sep 2004 13:14:22 +0000 (13:14 +0000)
committerRyan Norton <wxprojects@comcast.net>
Mon, 27 Sep 2004 13:14:22 +0000 (13:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dialogs/dialogs.h

index 7517a20c432da00695d7bbd633e3f6a186b21ca2..6b0bcf8ce76434b441809195798b8891e9002317 100644 (file)
@@ -46,6 +46,12 @@ of MSW, MAC and OS2
     #define USE_WXMAC 0
 #endif
 
+#if defined(__WXMAC_OSX__) && ( MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_2)
+    #define USE_WXMACFONTDLG 1
+#else
+    #define USE_WXMACFONTDLG 0
+#endif
+
 #ifdef __WXGTK__
     #define USE_WXGTK 1
 #else
@@ -67,7 +73,7 @@ of MSW, MAC and OS2
 #define USE_FILEDLG_GENERIC \
     ((USE_WXMSW || USE_WXMAC || USE_WXPM) && USE_GENERIC_DIALOGS && wxUSE_FILEDLG)
 #define USE_FONTDLG_GENERIC \
-    ((USE_WXMSW || USE_WXPM) && USE_GENERIC_DIALOGS && wxUSE_FONTDLG)
+    ((USE_WXMSW || USE_WXMACFONTDLG ||USE_WXPM) && USE_GENERIC_DIALOGS && wxUSE_FONTDLG)
 
 
 // Turn USE_MODAL_PRESENTATION to 0 if there is any reason for not presenting difference