From: Jack Jansen Date: Tue, 27 Feb 2001 11:05:00 +0000 (+0000) Subject: Dialog and Window objects are (finally) different beasts. X-Git-Tag: v2.1b1~182 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a69373664d075c6382ddaca3da54c750e3b02bd;p=thirdparty%2FPython%2Fcpython.git Dialog and Window objects are (finally) different beasts. --- diff --git a/Tools/bgen/bgen/macsupport.py b/Tools/bgen/bgen/macsupport.py index 89d94fe16578..4e0ab0e27d79 100644 --- a/Tools/bgen/bgen/macsupport.py +++ b/Tools/bgen/bgen/macsupport.py @@ -70,8 +70,7 @@ WindowRef = WindowPtr DialogPtr = OpaqueByValueType("DialogPtr", "DlgObj") DialogRef = DialogPtr ExistingWindowPtr = OpaqueByValueType("WindowPtr", "WinObj_WhichWindow", "BUG") -# XXX This is incorrect: it returns a Window, not a Dialog! -ExistingDialogPtr = OpaqueByValueType("DialogPtr", "WinObj_WhichWindow", "BUG") +ExistingDialogPtr = OpaqueByValueType("DialogPtr", "DlgObj_WhichDialog", "BUG") # NULL pointer passed in as optional storage -- not present in Python version NullStorage = FakeType("(void *)0")