git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51362
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxMenuBase::~wxMenuBase()
{
WX_CLEAR_LIST(wxMenuItemList, m_items);
wxMenuBase::~wxMenuBase()
{
WX_CLEAR_LIST(wxMenuItemList, m_items);
-
- // Actually, in GTK, the submenus have to get deleted first.
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
if ( m_owner )
gtk_widget_destroy( m_menu );
}
if ( m_owner )
gtk_widget_destroy( m_menu );
}
-
- // This must come after we release GTK resources above. Otherwise, GTK will
- // give warnings/errors when attempting to free accelerator resources from
- // child items that just were destroyed (the m_menu widget can contain
- // references to accelerators in child items. Problem detected when removing
- // a menu from a wxMenuBar, and the removed menu had submenus with accelerators.)
- WX_CLEAR_LIST(wxMenuItemList, m_items);
}
void wxMenu::SetLayoutDirection(const wxLayoutDirection dir)
}
void wxMenu::SetLayoutDirection(const wxLayoutDirection dir)