X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..6f0b6fd1e4b5b2633e1f34c54c8d4f4e5da98637:/src/univ/statusbr.cpp?ds=sidebyside diff --git a/src/univ/statusbr.cpp b/src/univ/statusbr.cpp index 4a1d7203ed..ac0dbc3fa9 100644 --- a/src/univ/statusbr.cpp +++ b/src/univ/statusbr.cpp @@ -141,7 +141,7 @@ void wxStatusBarUniv::DoDraw(wxControlRenderer *renderer) } } -void wxStatusBarUniv::RefreshField(int i) +void wxStatusBarUniv::DoUpdateStatusText(int i) { wxRect rect; if ( GetFieldRect(i, rect) ) @@ -150,27 +150,6 @@ void wxStatusBarUniv::RefreshField(int i) } } -// ---------------------------------------------------------------------------- -// fields text -// ---------------------------------------------------------------------------- - -void wxStatusBarUniv::SetStatusText(const wxString& text, int number) -{ - wxCHECK_RET( number >= 0 && (size_t)number < m_panes.GetCount(), - wxT("invalid status bar field index in SetStatusText()") ); - - if ( text == GetStatusText(number) ) - { - // nothing changed - return; - } - - wxStatusBarBase::SetStatusText(text, number); - - RefreshField(number); -} - - // ---------------------------------------------------------------------------- // fields count/widths // ----------------------------------------------------------------------------