reverted broken changes from r56345 and r56349

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-10-16 08:15:56 +00:00
parent e261c9e2af
commit 352cd79f63
4 changed files with 3 additions and 9 deletions

View File

@@ -706,7 +706,7 @@ void wxMenu::Init()
// NB: keep reference to the menu so that it is not destroyed behind
// our back by GTK+ e.g. when it is removed from menubar:
g_object_ref(m_menu);
g_object_ref_sink(m_menu);
gtk_object_sink(GTK_OBJECT(m_menu));
m_owner = (GtkWidget*) NULL;