Don't set invoking window recursively in wxGTK wxWindow::PopupMenu().
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Apr 2010 14:19:10 +0000 (14:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Apr 2010 14:19:10 +0000 (14:19 +0000)
commit6de0a414a52c3e13c33fc26b0a8a1b24fca44936
treef7ead9ee248201ae494a9270d1f18cd004fe0525
parentb1153ed60faa31147c5ff2d4cbae15f4d5376887
Don't set invoking window recursively in wxGTK wxWindow::PopupMenu().

Setting the invoking window for all submenus is unnecessary as
wxMenu::GetWindow() recurses upwards anyhow and results in assert failures
after recent menu code changes.

Simply don't do this.

OTOH do reset the invoking window to NULL after the menu is dismissed to avoid
storing a dangling pointer in the menu.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/window.cpp