]> git.saurik.com Git - wxWidgets.git/commitdiff
Stub out SetToolTip to avoid massive ifdefing when encountering
authorJulian Smart <julian@anthemion.co.uk>
Mon, 26 Jul 2004 20:16:19 +0000 (20:16 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 26 Jul 2004 20:16:19 +0000 (20:16 +0000)
a platform that doesn't support them

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/window.h

index 247786e0900fd928f3179d776d0294bfb616fd32..dd75d380eebf613a52112e1be907c852a9789471 100644 (file)
@@ -906,6 +906,10 @@ public:
         // get the associated tooltip or NULL if none
     wxToolTip* GetToolTip() const { return m_tooltip; }
     wxString GetToolTipText() const ;
+#else
+        // make it much easier to compile apps in an environment
+        // that doesn't support tooltips, such as PocketPC
+    inline void SetToolTip( const wxString & WXUNUSED(tip) ) {}
 #endif // wxUSE_TOOLTIPS
 
     // drag and drop