]> git.saurik.com Git - wxWidgets.git/commit
Do not unref GtkWidget of unattached wxMenuBar.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 26 Sep 2012 22:30:00 +0000 (22:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 26 Sep 2012 22:30:00 +0000 (22:30 +0000)
commit4fcad4fb6de3ff496673fd0fcc5411d8df1d0b3e
tree5936b2cf3a521b6747a24412646d4dfd118b11ef
parente2f268db5c09e7a44e747f47dc0a46462e757021
Do not unref GtkWidget of unattached wxMenuBar.

This results in the destruction of the widgets of all of its menu and when
wxMenu objects are themselves destroyed in the base class dtor, we try to
destroy their already destroyed widgets, resulting in critical GTK warnings.

Simply don't do anything in wxMenuBar dtor itself if the menu bar is not
attached to a frame as the workaround was only needed in case of destroying
attached menu bars.

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