X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..9dc1d18069c519c807c2476a837e710b5ef932c6:/src/gtk/tooltip.cpp?ds=sidebyside diff --git a/src/gtk/tooltip.cpp b/src/gtk/tooltip.cpp index 3b04c2c35d..e0d3bd03fa 100644 --- a/src/gtk/tooltip.cpp +++ b/src/gtk/tooltip.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: tooltip.cpp +// Name: src/gtk/tooltip.cpp // Purpose: wxToolTip implementation // Author: Robert Roebling // Id: $Id$ @@ -10,8 +10,6 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#include "wx/setup.h" - #if wxUSE_TOOLTIPS #include "wx/tooltip.h" @@ -70,13 +68,19 @@ void wxToolTip::Enable( bool flag ) gtk_tooltips_disable( ss_tooltips ); } +G_BEGIN_DECLS +void gtk_tooltips_set_delay (GtkTooltips *tooltips, + guint delay); +G_END_DECLS + void wxToolTip::SetDelay( long msecs ) { if (!ss_tooltips) return; + // FIXME: This is a deprecated function and might not even have an effect. + // Try to not use it, after which remove the prototype above. gtk_tooltips_set_delay( ss_tooltips, (int)msecs ); } #endif -