X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/78d990152a01bd0a21a0425ab661cb43040b4d98..6178debcd342963974dbdce6ac2ddb2fbe89e42a:/src/osx/cocoa/tooltip.mm?ds=sidebyside diff --git a/src/osx/cocoa/tooltip.mm b/src/osx/cocoa/tooltip.mm index 4cb9e517c5..d0b73a59ce 100644 --- a/src/osx/cocoa/tooltip.mm +++ b/src/osx/cocoa/tooltip.mm @@ -37,7 +37,7 @@ IMPLEMENT_ABSTRACT_CLASS(wxToolTip, wxObject) wxToolTip::wxToolTip( const wxString &tip ) { m_text = tip; - m_window = (wxWindow*) NULL; + m_window = NULL; } wxToolTip::~wxToolTip() @@ -47,6 +47,8 @@ wxToolTip::~wxToolTip() void wxToolTip::SetTip( const wxString &tip ) { m_text = tip; + if (m_window) + m_window->SetToolTip(this); } void wxToolTip::SetWindow( wxWindow *win ) @@ -54,11 +56,11 @@ void wxToolTip::SetWindow( wxWindow *win ) m_window = win ; } -void wxToolTip::Enable( bool flag ) +void wxToolTip::Enable( bool WXUNUSED(flag) ) { } -void wxToolTip::SetDelay( long msecs ) +void wxToolTip::SetDelay( long WXUNUSED(msecs) ) { } @@ -70,7 +72,7 @@ void wxToolTip::SetReshow( long WXUNUSED(msecs) ) { } -void wxToolTip::RelayEvent( wxWindow *win , wxMouseEvent &event ) +void wxToolTip::RelayEvent( wxWindow *WXUNUSED(win) , wxMouseEvent &WXUNUSED(event) ) { } @@ -79,7 +81,7 @@ void wxToolTip::RemoveToolTips() } // --- mac specific -void wxToolTip::NotifyWindowDelete( WXHWND win ) +void wxToolTip::NotifyWindowDelete( WXHWND WXUNUSED(win) ) { }