diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1997-04-08 15:26:03 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1997-04-08 15:26:03 (GMT) |
commit | 85ae4a82ac4f47005ed723ef77fd01038f2a1f3a (patch) | |
tree | 5d4fb05645b64de5863388cf5caab1f392d11f91 /Mac/Modules/ctl/Ctlmodule.c | |
parent | 54956722e5342ce0ebece1eaad85cca3e7791250 (diff) | |
download | cpython-85ae4a82ac4f47005ed723ef77fd01038f2a1f3a.zip cpython-85ae4a82ac4f47005ed723ef77fd01038f2a1f3a.tar.gz cpython-85ae4a82ac4f47005ed723ef77fd01038f2a1f3a.tar.bz2 |
Changed [SG]etCRefCon to [SG]etControlReference
Diffstat (limited to 'Mac/Modules/ctl/Ctlmodule.c')
-rw-r--r-- | Mac/Modules/ctl/Ctlmodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Modules/ctl/Ctlmodule.c b/Mac/Modules/ctl/Ctlmodule.c index 526338b..bbf5128 100644 --- a/Mac/Modules/ctl/Ctlmodule.c +++ b/Mac/Modules/ctl/Ctlmodule.c @@ -73,7 +73,7 @@ PyObject *CtlObj_New(itself) it = PyObject_NEW(ControlObject, &Control_Type); if (it == NULL) return NULL; it->ob_itself = itself; - SetCRefCon(itself, (long)it); + SetControlReference(itself, (long)it); return (PyObject *)it; } CtlObj_Convert(v, p_itself) @@ -92,7 +92,7 @@ CtlObj_Convert(v, p_itself) static void CtlObj_dealloc(self) ControlObject *self; { - if (self->ob_itself) SetCRefCon(self->ob_itself, (long)0); /* Make it forget about us */ + if (self->ob_itself) SetControlReference(self->ob_itself, (long)0); /* Make it forget about us */ PyMem_DEL(self); } @@ -448,7 +448,7 @@ static PyObject *CtlObj_DisposeControl(_self, _args) if (!PyArg_ParseTuple(_args, "")) return NULL; if ( _self->ob_itself ) { - SetCRefCon(_self->ob_itself, (long)0); /* Make it forget about us */ + SetControlReference(_self->ob_itself, (long)0); /* Make it forget about us */ DisposeControl(_self->ob_itself); _self->ob_itself = NULL; } @@ -674,7 +674,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); |