]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed wxFindFocusDescendant for non-wxMSW platforms.
authorJulian Smart <julian@anthemion.co.uk>
Thu, 5 Oct 2000 13:05:50 +0000 (13:05 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 5 Oct 2000 13:05:50 +0000 (13:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/framecmn.cpp
src/common/tbarbase.cpp

index b69ca51332c985e75918d6dddff501a1e426cab2..3cc2dff527d745502ad526e86202dea0702c1870 100644 (file)
@@ -427,8 +427,11 @@ void wxFrameBase::DoMenuUpdates()
 {
     wxMenuBar* bar = GetMenuBar();
 
+#ifdef __WXMSW__
     wxWindow* focusWin = wxFindFocusDescendant((wxWindow*) this);
-
+#else
+    wxWindow* focusWin = (wxWindow*) NULL;
+#endif
     if ( bar != NULL )
     {
         int nCount = bar->GetMenuCount();
index 526c883fcc35f7f82f86475a2215ebad841e62f0..3bb374eecb3138ed312a4dc8d3a4b12bf097f4c9 100644 (file)
@@ -530,7 +530,11 @@ void wxToolBarBase::DoToolbarUpdates()
     while (parent->GetParent())
         parent = parent->GetParent();
 
+#ifdef __WXMSW__
     wxWindow* focusWin = wxFindFocusDescendant(parent);
+#else
+    wxWindow* focusWin = (wxWindow*) NULL;
+#endif
 
     wxEvtHandler* evtHandler = focusWin ? focusWin->GetEventHandler() : GetEventHandler() ;