X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff8bfdbbb14af4cd77de9d3534b1cd4f7a033137..861ccde48164e232a7486e6084db4727faf50e0a:/src/gtk1/tooltip.cpp diff --git a/src/gtk1/tooltip.cpp b/src/gtk1/tooltip.cpp index dde56c65ee..789278b792 100644 --- a/src/gtk1/tooltip.cpp +++ b/src/gtk1/tooltip.cpp @@ -11,6 +11,10 @@ #pragma implementation "tooltip.h" #endif +#include "wx/setup.h" + +#if wxUSE_TOOLTIPS + #include "wx/window.h" #include "wx/tooltip.h" @@ -65,7 +69,7 @@ void wxToolTip::Apply( wxWindow *win ) m_window = win; if (m_text.IsEmpty()) - m_window->ApplyToolTip( ss_tooltips, (char*) NULL ); + m_window->ApplyToolTip( ss_tooltips, (wxChar*) NULL ); else m_window->ApplyToolTip( ss_tooltips, m_text ); } @@ -86,4 +90,5 @@ void wxToolTip::SetDelay( long msecs ) gtk_tooltips_set_delay( ss_tooltips, msecs ); } +#endif