]> git.saurik.com Git - wxWidgets.git/commitdiff
Compilation fix for PCH-less build after r74586.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 23 Jul 2013 13:18:30 +0000 (13:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 23 Jul 2013 13:18:30 +0000 (13:18 +0000)
Don't use wxWindow methods in wx/container.h, move AcceptsFocus()
implementation to containr.cpp.

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

include/wx/containr.h
src/common/containr.cpp

index b465e33c30b5c8aec34f8e19a539211a4f79741d..d1a63bdfca0442a492ea2c55cb6567fd334f0767 100644 (file)
@@ -76,8 +76,7 @@ public:
     bool DoSetFocus();
 
     // returns whether we should accept focus ourselves or not
-    bool AcceptsFocus() const
-        { return m_acceptsFocusSelf && m_winParent->CanBeFocused(); }
+    bool AcceptsFocus() const;
 
     // Returns whether we or one of our children accepts focus.
     bool AcceptsFocusRecursively() const
index ba1ffd220e7deed882b841587699f42c0899488f..935607efdd57b1a2872e10f7ca91e289f22ab093 100644 (file)
@@ -153,6 +153,11 @@ bool wxControlContainerBase::DoSetFocus()
     return ret;
 }
 
+bool wxControlContainerBase::AcceptsFocus() const
+{
+    return m_acceptsFocusSelf && m_winParent->CanBeFocused();
+}
+
 bool wxControlContainerBase::SetFocusToChild()
 {
     return wxSetFocusToChild(m_winParent, &m_winLastFocused);