]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/tooltip.cpp
GetLabelTop should return the stripped label, for compatibility.
[wxWidgets.git] / src / gtk1 / tooltip.cpp
index 0ac2a8b1da30316c629e5ad7f499d15227105a3e..141f3bc17d53e4508007aedbe18d0c07468d0e11 100644 (file)
 #if wxUSE_TOOLTIPS
 
 #include "wx/tooltip.h"
-#include "wx/window.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/window.h"
+#endif
 
 #include "wx/gtk1/private.h"
 
@@ -52,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 );