]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarbase.cpp
wxNativeFontInfo changes
[wxWidgets.git] / src / common / tbarbase.cpp
index 526c883fcc35f7f82f86475a2215ebad841e62f0..d904ff91949b1412732f40df617a08c293fc47f7 100644 (file)
@@ -53,6 +53,8 @@
     END_EVENT_TABLE()
 #endif
 
+IMPLEMENT_CLASS(wxToolBarBase, wxControl)
+
 #include "wx/listimpl.cpp"
 
 WX_DEFINE_LIST(wxToolBarToolsList);
@@ -530,7 +532,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() ;