X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..a843055617d0a70ade84647583eb54a4f2c4afc7:/src/gtk1/tooltip.cpp diff --git a/src/gtk1/tooltip.cpp b/src/gtk1/tooltip.cpp index 3b04c2c35d..141f3bc17d 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,14 +10,15 @@ // 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 @@ -54,7 +55,7 @@ void wxToolTip::Apply( wxWindow *win ) m_window = win; - if (m_text.IsEmpty()) + if (m_text.empty()) m_window->ApplyToolTip( ss_tooltips, (wxChar*) NULL ); else m_window->ApplyToolTip( ss_tooltips, m_text ); @@ -79,4 +80,3 @@ void wxToolTip::SetDelay( long msecs ) } #endif -