X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b5f1895643cf94b38ac19a4c1151e259310852e..1d8340b95698d5e27a72bd1aee423a0b954e85b1:/src/gtk1/tooltip.cpp diff --git a/src/gtk1/tooltip.cpp b/src/gtk1/tooltip.cpp index 0ac2a8b1da..bf98adb334 100644 --- a/src/gtk1/tooltip.cpp +++ b/src/gtk1/tooltip.cpp @@ -13,7 +13,10 @@ #if wxUSE_TOOLTIPS #include "wx/tooltip.h" -#include "wx/window.h" + +#ifndef WX_PRECOMP + #include "wx/window.h" +#endif #include "wx/gtk1/private.h" @@ -21,7 +24,7 @@ // global data //----------------------------------------------------------------------------- -static GtkTooltips *ss_tooltips = (GtkTooltips*) NULL; +static GtkTooltips *ss_tooltips = NULL; //----------------------------------------------------------------------------- // wxToolTip @@ -32,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 ) @@ -52,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 ); } @@ -76,4 +79,12 @@ void wxToolTip::SetDelay( long msecs ) gtk_tooltips_set_delay( ss_tooltips, (int)msecs ); } +void wxToolTip::SetAutoPop( long WXUNUSED(msecs) ) +{ +} + +void wxToolTip::SetReshow( long WXUNUSED(msecs) ) +{ +} + #endif