]> git.saurik.com Git - wxWidgets.git/commitdiff
Compilation fix for !wxUSE_TOOLTIP.
authorMattia Barbon <mbarbon@cpan.org>
Tue, 8 Apr 2003 18:45:38 +0000 (18:45 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Tue, 8 Apr 2003 18:45:38 +0000 (18:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/shaped/shaped.cpp

index 7914ddc47f267e90908eb0f22d9953084d724ec5..dee29b4788dfccd2a7aa69e44e5e1bcc7711b1b3 100644 (file)
@@ -154,7 +154,9 @@ ShapedFrame::ShapedFrame()
     m_hasShape = FALSE;
     m_bmp = wxBitmap("star.png", wxBITMAP_TYPE_PNG);
     SetSize(wxSize(m_bmp.GetWidth(), m_bmp.GetHeight()));
+#if wxUSE_TOOLTIP
     SetToolTip(wxT("Right-click to exit"));
+#endif
 #ifdef __WXMSW__
     // On wxGTK we can't do this yet because the window hasn't been created
     // yet so we wait until the EVT_WINDOW_CREATE event happens.  On wxMSW it