Merge pull request #1697 from swt2c/windowlist_transfer

Set transfer flag on wxPGWindowList constructor and SetSecondary method
This commit is contained in:
Robin Dunn
2020-07-02 15:06:42 -07:00
committed by GitHub

View File

@@ -89,6 +89,13 @@ def run():
if hasattr(item, 'type') and 'wxVariant' in item.type:
item.type = item.type.replace('wxVariant', 'wxPGVariant')
# wxPGWindowList doesn't expect to own these, but wxPropertyGrid does,
# so flag them as transferred to the C++ side.
c = module.find('wxPGWindowList')
c.find('wxPGWindowList.primary').transfer = True
c.find('wxPGWindowList.secondary').transfer = True
c.find('SetSecondary.secondary').transfer = True
#-----------------------------------------------------------------
tools.doCommonTweaks(module)
tools.runGenerators(module)