summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/ctl/ctlsupport.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1997-04-08 15:26:03 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1997-04-08 15:26:03 (GMT)
commit85ae4a82ac4f47005ed723ef77fd01038f2a1f3a (patch)
tree5d4fb05645b64de5863388cf5caab1f392d11f91 /Mac/Modules/ctl/ctlsupport.py
parent54956722e5342ce0ebece1eaad85cca3e7791250 (diff)
downloadcpython-85ae4a82ac4f47005ed723ef77fd01038f2a1f3a.zip
cpython-85ae4a82ac4f47005ed723ef77fd01038f2a1f3a.tar.gz
cpython-85ae4a82ac4f47005ed723ef77fd01038f2a1f3a.tar.bz2
Changed [SG]etCRefCon to [SG]etControlReference
Diffstat (limited to 'Mac/Modules/ctl/ctlsupport.py')
-rw-r--r--Mac/Modules/ctl/ctlsupport.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Modules/ctl/ctlsupport.py b/Mac/Modules/ctl/ctlsupport.py
index 3b32164..f7f5df2 100644
--- a/Mac/Modules/ctl/ctlsupport.py
+++ b/Mac/Modules/ctl/ctlsupport.py
@@ -54,7 +54,7 @@ CtlObj_WhichControl(ControlHandle c)
if (c == NULL)
it = NULL;
else
- it = (PyObject *) GetCRefCon(c);
+ it = (PyObject *) GetControlReference(c);
if (it == NULL || ((ControlObject *)it)->ob_itself != c)
it = Py_None;
Py_INCREF(it);
@@ -67,9 +67,9 @@ class MyObjectDefinition(GlobalObjectDefinition):
Output("if (itself == NULL) return PyMac_Error(resNotFound);")
def outputInitStructMembers(self):
GlobalObjectDefinition.outputInitStructMembers(self)
- Output("SetCRefCon(itself, (long)it);")
+ Output("SetControlReference(itself, (long)it);")
def outputCleanupStructMembers(self):
- Output("if (self->ob_itself) SetCRefCon(self->ob_itself, (long)0); /* Make it forget about us */")
+ Output("if (self->ob_itself) SetControlReference(self->ob_itself, (long)0); /* Make it forget about us */")
# Create the generator groups and link them
module = MacModule(MODNAME, MODPREFIX, includestuff, finalstuff, initstuff)