]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix: wxGenericCollapsiblePane needs wxButton and wxStaticLine
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 27 Oct 2006 13:08:05 +0000 (13:08 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 27 Oct 2006 13:08:05 +0000 (13:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/collpaneg.h
src/generic/collpaneg.cpp

index 843b8d6dc2cb8522e64019d3ba6bbc62e1947429..c8466c690d58d2481042cc336ac6effe0d9a2dce 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef _WX_COLLAPSABLE_PANE_H_GENERIC_
 #define _WX_COLLAPSABLE_PANE_H_GENERIC_
 
+#if wxUSE_BUTTON && wxUSE_STATLINE
+
 // forward declared
 class WXDLLEXPORT wxButton;
 class WXDLLEXPORT wxStaticLine;
@@ -102,5 +104,7 @@ private:
     DECLARE_EVENT_TABLE()
 };
 
+#endif // wxUSE_BUTTON && wxUSE_STATLINE
+
 
 #endif // _WX_COLLAPSABLE_PANE_H_GENERIC_
index 8985914aa10b1c565799a776379d52ef93f3332e..2f1ea156b472f824c5cdc48ab0cb9ff04d1f51d3 100644 (file)
@@ -19,6 +19,8 @@
 
 #include "wx/collpane.h"
 
+#if wxUSE_BUTTON && wxUSE_STATLINE
+
 #ifndef WX_PRECOMP
     #include "wx/toplevel.h"
     #include "wx/button.h"
@@ -236,3 +238,5 @@ void wxGenericCollapsiblePane::OnSize(wxSizeEvent& WXUNUSED(event))
     // this is very important to make the pane window layout show correctly
     m_pPane->Layout();
 }
+
+#endif // wxUSE_BUTTON && wxUSE_STATLINE