X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3b9f782ef3949f583e8ac53795d36787f044fc3..0afeb753e0a6a3fdba290bf3612bb2f012d44d95:/src/osx/cocoa/tooltip.mm?ds=sidebyside diff --git a/src/osx/cocoa/tooltip.mm b/src/osx/cocoa/tooltip.mm index f2f0bd30f0..11c44b49b4 100644 --- a/src/osx/cocoa/tooltip.mm +++ b/src/osx/cocoa/tooltip.mm @@ -1,8 +1,8 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/osx/carbon/tooltip.cpp +// Name: src/osx/cocoa/tooltip.mm // Purpose: wxToolTip implementation // Author: Stefan Csomor -// Id: $Id: tooltip.cpp 55419 2008-09-02 16:53:23Z SC $ +// Id: $Id$ // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -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) ) { }