]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
better native types for carbon
[wxWidgets.git] / src / generic / listctrl.cpp
index 4e16824db153e42e4e00aeb396479a315c7f75e1..dbc1eeec4d1155576d46eb8aa91e28704151f303 100644 (file)
@@ -4305,13 +4305,9 @@ void wxGenericListCtrl::CreateOrDestroyHeaderWindowAsNeeded()
                         wxTAB_TRAVERSAL
                       );
 
-#if defined( __WXMAC__ ) && wxOSX_USE_COCOA_OR_CARBON
+#if defined( __WXMAC__ )
         wxFont font;
-#if wxOSX_USE_ATSU_TEXT
-        font.MacCreateFromThemeFont( kThemeSmallSystemFont );
-#else
-        font.MacCreateFromUIFont( kCTFontSystemFontType );
-#endif
+        font.CreateSystemFont( wxOSX_SYSTEM_FONT_SMALL );
         m_headerWin->SetFont( font );
 #endif