]> granicus.if.org Git - python/commitdiff
Dialog and Window objects are (finally) different beasts.
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 27 Feb 2001 11:05:00 +0000 (11:05 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 27 Feb 2001 11:05:00 +0000 (11:05 +0000)
Tools/bgen/bgen/macsupport.py

index 89d94fe165785ebd26cc80f9f1ca0b5d1fb06939..4e0ab0e27d793838baa4fb405f370981b0b601d3 100644 (file)
@@ -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")