X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..b5ec0c78b521cfa0f276e4d5d830f35b4fa26e91:/src/gtk1/tooltip.cpp diff --git a/src/gtk1/tooltip.cpp b/src/gtk1/tooltip.cpp index 3b04c2c35d..bf98adb334 100644 --- a/src/gtk1/tooltip.cpp +++ b/src/gtk1/tooltip.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: tooltip.cpp +// Name: src/gtk1/tooltip.cpp // Purpose: wxToolTip implementation // Author: Robert Roebling // Id: $Id$ @@ -10,20 +10,21 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#include "wx/setup.h" - #if wxUSE_TOOLTIPS #include "wx/tooltip.h" -#include "wx/window.h" -#include "wx/gtk/private.h" +#ifndef WX_PRECOMP + #include "wx/window.h" +#endif + +#include "wx/gtk1/private.h" //----------------------------------------------------------------------------- // global data //----------------------------------------------------------------------------- -static GtkTooltips *ss_tooltips = (GtkTooltips*) NULL; +static GtkTooltips *ss_tooltips = NULL; //----------------------------------------------------------------------------- // wxToolTip @@ -34,7 +35,7 @@ IMPLEMENT_ABSTRACT_CLASS(wxToolTip, wxObject) wxToolTip::wxToolTip( const wxString &tip ) { m_text = tip; - m_window = (wxWindow*) NULL; + m_window = NULL; } void wxToolTip::SetTip( const wxString &tip ) @@ -54,8 +55,8 @@ void wxToolTip::Apply( wxWindow *win ) m_window = win; - if (m_text.IsEmpty()) - m_window->ApplyToolTip( ss_tooltips, (wxChar*) NULL ); + if (m_text.empty()) + m_window->ApplyToolTip( ss_tooltips, NULL ); else m_window->ApplyToolTip( ss_tooltips, m_text ); } @@ -78,5 +79,12 @@ void wxToolTip::SetDelay( long msecs ) gtk_tooltips_set_delay( ss_tooltips, (int)msecs ); } -#endif +void wxToolTip::SetAutoPop( long WXUNUSED(msecs) ) +{ +} +void wxToolTip::SetReshow( long WXUNUSED(msecs) ) +{ +} + +#endif