diff --git a/CHANGES.rst b/CHANGES.rst index 1acbcf98..2268384b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -65,6 +65,9 @@ Changes in this release include the following: * Added a Python 3.7 builder on Fedora 28. (#925) +* Fix the object ownership transfer for wx.Menu.Insert() (#931) + + diff --git a/etg/menu.py b/etg/menu.py index bf6d80ef..c096ba72 100644 --- a/etg/menu.py +++ b/etg/menu.py @@ -54,6 +54,7 @@ def run(): addTransferAnnotations(c, 'menuItem') addTransferAnnotations(c, 'subMenu') c.find('AppendSubMenu.submenu').transfer = True + c.find('Insert.submenu').transfer = True # We only need one of these overloads, the non-const/const is not enough # to distinguish a unique Python signature.