fix for toolbar highlighting (not done for main toolbar)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f50de1504e
commit
c00266964a
@ -630,8 +630,11 @@ class XML_Tree(wxTreeCtrl):
|
||||
# Top-level sizer? return window's sizer
|
||||
if xxx.isSizer and isinstance(parentWin, wxWindow):
|
||||
return parentWin.GetSizer()
|
||||
elif isinstance(xxx, xxxToolBar):
|
||||
# If it's the main toolbar, we can't really select it
|
||||
if xxx.parent.__class__ == xxxFrame: return None
|
||||
elif isinstance(xxx.parent, xxxToolBar):
|
||||
# How to get tool from toolbar?
|
||||
# Select complete toolbar
|
||||
return parentWin
|
||||
elif isinstance(xxx.parent, xxxStdDialogButtonSizer):
|
||||
# This sizer returns non-existing children
|
||||
|
Loading…
Reference in New Issue
Block a user