]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/gdiobj.cpp
fixing typo
[wxWidgets.git] / src / osx / carbon / gdiobj.cpp
index ad33a80ba9dd34d2bccf9467865b9423c97e9331..31ec9c8017614e5d9aaefb58be149e4230312dc8 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        src/mac/carbon/gdiobj.cpp
+// Name:        src/osx/carbon/gdiobj.cpp
 // Purpose:     wxGDIObject class
 // Author:      Stefan Csomor
 // Modified by:
@@ -20,6 +20,7 @@
 
 #include "wx/link.h"
 #include "wx/osx/private.h"
+#include "wx/font.h"
 
 // Linker will discard entire object file without this
 wxFORCE_LINK_THIS_MODULE(gdiobj)
@@ -59,11 +60,11 @@ const wxFont* wxStockGDIMac::GetFont(Item item)
         {
         case FONT_NORMAL:
             font = new wxFont;
-            font->MacCreateFromThemeFont(kThemeSystemFont);
+            font->CreateSystemFont(wxOSX_SYSTEM_FONT_NORMAL);
             break;
         case FONT_SMALL:
             font = new wxFont;
-            font->MacCreateFromThemeFont(kThemeSmallSystemFont);
+            font->CreateSystemFont(wxOSX_SYSTEM_FONT_SMALL);
             break;
         default:
             font = const_cast<wxFont*>(super::GetFont(item));