Set popup menu invoking window in wxWindowBase and not in all ports.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Apr 2010 14:19:17 +0000 (14:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Apr 2010 14:19:17 +0000 (14:19 +0000)
commitc59aa14a6c1f23ddcd34822443483332a5ee81c3
tree6e64bdc7ae1a777e4e9a044e61004c4f0d6ebd67
parent6de0a414a52c3e13c33fc26b0a8a1b24fca44936
Set popup menu invoking window in wxWindowBase and not in all ports.

Don't duplicate the code for setting (and unsetting, which was forgotten by at
least wxGTK) the popup menu invoking window in all ports but do it in the base
class PopupMenu() itself.

Also add a helper wxMenuInvokingWindowSetter class which ensures that the
invoking window will be unset in any case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/menu.h
src/cocoa/taskbar.mm
src/common/wincmn.cpp
src/gtk/window.cpp
src/gtk1/menu.cpp
src/motif/window.cpp
src/msw/window.cpp
src/os2/window.cpp
src/osx/window_osx.cpp
src/univ/menu.cpp