X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9553702e463d217eb90465d008ea0ed41d7a658b..9d5507f7a2701395e1d5c121bd877bb9066ee6ea:/src/generic/listctrl.cpp diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 32c3e8c581..a5b504235f 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -5021,25 +5021,29 @@ bool wxGenericListCtrl::Create(wxWindow *parent, m_mainWin = new wxListMainWindow( this, wxID_ANY, wxPoint(0, 0), size, style ); +#ifdef __WXMAC__ // Human Interface Guidelines ask us for a special font in this case if ( GetWindowVariant() == wxWINDOW_VARIANT_NORMAL ) { wxFont font; - font.MacCreateThemeFont( kThemeViewsFont ); + font.MacCreateFromThemeFont( kThemeViewsFont ); SetFont( font ); } +#endif if ( InReportView() ) { CreateHeaderWindow(); +#ifdef __WXMAC__ if (m_headerWin) { wxFont font; - font.MacCreateThemeFont( kThemeSmallSystemFont ); + font.MacCreateFromThemeFont( kThemeSmallSystemFont ); m_headerWin->SetFont( font ); CalculateAndSetHeaderHeight(); } +#endif if ( HasFlag(wxLC_NO_HEADER) ) // VZ: why do we create it at all then?