Don't use invoking window in wxGTK wxMenuBar implementation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Apr 2010 15:08:00 +0000 (15:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Apr 2010 15:08:00 +0000 (15:08 +0000)
commit6abf7b639c8f6827c7784d5707ea4733a375d4eb
tree9c979317a030092d8294151265d1a21b75eb600b
parent7739f9c947aa1d7ad2a0c70a112fed820f909d96
Don't use invoking window in wxGTK wxMenuBar implementation.

wxGTK wxMenuBar used its own SetInvokingWindow/UnsetInvokingWindow() and
related functions instead of reusing the base class Attach/Detach() which
exist for exactly the same purpose. This resulted in unnecessary code
duplication and confusion and, since the changes of r64104, resulted in
asserts due to use of SetInvokingWindow() for non-popup menus.

Fix this by removing the wxGTK-specific functions and doing the work they used
to do in (now overridden) Attach() and Detach(). Also call Attach/Detach()
instead of these functions from wxGTK wxFrame and wxMDIParentFrame code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/gtk/menu.h
src/gtk/frame.cpp
src/gtk/mdi.cpp
src/gtk/menu.cpp