X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..b94fa9f5ab1819eb00774232ebc0d3d9ec325b8f:/src/mac/carbon/statbrma.cpp diff --git a/src/mac/carbon/statbrma.cpp b/src/mac/carbon/statbrma.cpp index 8220559531..c926d76b01 100644 --- a/src/mac/carbon/statbrma.cpp +++ b/src/mac/carbon/statbrma.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "statbrma.h" #endif @@ -17,6 +17,8 @@ // headers // ---------------------------------------------------------------------------- +#include "wx/wxprec.h" + #include "wx/statusbr.h" #include "wx/dc.h" #include "wx/dcclient.h" @@ -57,6 +59,9 @@ bool wxStatusBarMac::Create(wxWindow *parent, wxWindowID id, if ( parent->MacGetTopLevelWindow()->MacGetMetalAppearance() ) MacSetBackgroundBrush( wxNullBrush ) ; + // normal system font is too tall for fitting into the standard height + SetWindowVariant( wxWINDOW_VARIANT_SMALL ) ; + return TRUE ; } @@ -102,6 +107,9 @@ void wxStatusBarMac::SetStatusText(const wxString& text, int number) wxCHECK_RET( (number >= 0) && (number < m_nFields), _T("invalid status bar field index") ); + if ( m_statusStrings[number] == text ) + return ; + m_statusStrings[number] = text; wxRect rect; GetFieldRect(number, rect); @@ -125,7 +133,7 @@ void wxStatusBarMac::OnPaint(wxPaintEvent& WXUNUSED(event) ) if ( MacIsReallyHilited() ) { - wxPen white( wxWHITE , 1 , wxSOLID ) ; + wxPen white( *wxWHITE , 1 , wxSOLID ) ; if (major >= 10 ) { //Finder statusbar border color: (Project builder similar is 9B9B9B) @@ -136,7 +144,7 @@ void wxStatusBarMac::OnPaint(wxPaintEvent& WXUNUSED(event) ) } else { - wxPen black( wxBLACK , 1 , wxSOLID ) ; + wxPen black( *wxBLACK , 1 , wxSOLID ) ; dc.SetPen(black); } dc.DrawLine(0, 0 ,