summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/qd
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-01-24 14:22:13 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-01-24 14:22:13 (GMT)
commitf47075e86d4693cbe4a176a9a39c90dceef2f005 (patch)
tree3cc691cdac49c85cf16c30d5b2b090c3273a0ec8 /Mac/Modules/qd
parent131c2884841a0dd769a2212972a4ee2fb3a9c1c9 (diff)
downloadcpython-f47075e86d4693cbe4a176a9a39c90dceef2f005.zip
cpython-f47075e86d4693cbe4a176a9a39c90dceef2f005.tar.gz
cpython-f47075e86d4693cbe4a176a9a39c90dceef2f005.tar.bz2
Blacklisted (for the time being) the functions that have a component argument. Don't want to drag the Cm module into the core set too.
Diffstat (limited to 'Mac/Modules/qd')
-rw-r--r--Mac/Modules/qd/Qdmodule.c100
-rw-r--r--Mac/Modules/qd/qdscan.py6
2 files changed, 6 insertions, 100 deletions
diff --git a/Mac/Modules/qd/Qdmodule.c b/Mac/Modules/qd/Qdmodule.c
index b85e416..1ca8647 100644
--- a/Mac/Modules/qd/Qdmodule.c
+++ b/Mac/Modules/qd/Qdmodule.c
@@ -3842,96 +3842,6 @@ static PyObject *Qd_AngleFromSlope(_self, _args)
return _res;
}
-static PyObject *Qd_OpenCursorComponent(_self, _args)
- PyObject *_self;
- PyObject *_args;
-{
- PyObject *_res = NULL;
- OSErr _err;
- Component c;
- ComponentInstance ci;
- if (!PyArg_ParseTuple(_args, "O&",
- CmpObj_Convert, &c))
- return NULL;
- _err = OpenCursorComponent(c,
- &ci);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("O&",
- CmpInstObj_New, ci);
- return _res;
-}
-
-static PyObject *Qd_CloseCursorComponent(_self, _args)
- PyObject *_self;
- PyObject *_args;
-{
- PyObject *_res = NULL;
- OSErr _err;
- ComponentInstance ci;
- if (!PyArg_ParseTuple(_args, "O&",
- CmpInstObj_Convert, &ci))
- return NULL;
- _err = CloseCursorComponent(ci);
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
-}
-
-static PyObject *Qd_SetCursorComponent(_self, _args)
- PyObject *_self;
- PyObject *_args;
-{
- PyObject *_res = NULL;
- OSErr _err;
- ComponentInstance ci;
- if (!PyArg_ParseTuple(_args, "O&",
- CmpInstObj_Convert, &ci))
- return NULL;
- _err = SetCursorComponent(ci);
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
-}
-
-static PyObject *Qd_CursorComponentChanged(_self, _args)
- PyObject *_self;
- PyObject *_args;
-{
- PyObject *_res = NULL;
- OSErr _err;
- ComponentInstance ci;
- if (!PyArg_ParseTuple(_args, "O&",
- CmpInstObj_Convert, &ci))
- return NULL;
- _err = CursorComponentChanged(ci);
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
-}
-
-static PyObject *Qd_CursorComponentSetData(_self, _args)
- PyObject *_self;
- PyObject *_args;
-{
- PyObject *_res = NULL;
- OSErr _err;
- ComponentInstance ci;
- long data;
- if (!PyArg_ParseTuple(_args, "O&l",
- CmpInstObj_Convert, &ci,
- &data))
- return NULL;
- _err = CursorComponentSetData(ci,
- data);
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
-}
-
static PyObject *Qd_GetPortPixMap(_self, _args)
PyObject *_self;
PyObject *_args;
@@ -6019,16 +5929,6 @@ static PyMethodDef Qd_methods[] = {
"(short angle) -> (Fixed _rv)"},
{"AngleFromSlope", (PyCFunction)Qd_AngleFromSlope, 1,
"(Fixed slope) -> (short _rv)"},
- {"OpenCursorComponent", (PyCFunction)Qd_OpenCursorComponent, 1,
- "(Component c) -> (ComponentInstance ci)"},
- {"CloseCursorComponent", (PyCFunction)Qd_CloseCursorComponent, 1,
- "(ComponentInstance ci) -> None"},
- {"SetCursorComponent", (PyCFunction)Qd_SetCursorComponent, 1,
- "(ComponentInstance ci) -> None"},
- {"CursorComponentChanged", (PyCFunction)Qd_CursorComponentChanged, 1,
- "(ComponentInstance ci) -> None"},
- {"CursorComponentSetData", (PyCFunction)Qd_CursorComponentSetData, 1,
- "(ComponentInstance ci, long data) -> None"},
{"GetPortPixMap", (PyCFunction)Qd_GetPortPixMap, 1,
"(CGrafPtr port) -> (PixMapHandle _rv)"},
{"GetPortBounds", (PyCFunction)Qd_GetPortBounds, 1,
diff --git a/Mac/Modules/qd/qdscan.py b/Mac/Modules/qd/qdscan.py
index 9d1a506..6711ac2 100644
--- a/Mac/Modules/qd/qdscan.py
+++ b/Mac/Modules/qd/qdscan.py
@@ -104,6 +104,12 @@ extend = 0x40
'HandleToRgn', # Funny signature
+ # Need Cm, which we don't want to drag in just yet
+ 'OpenCursorComponent',
+ 'CloseCursorComponent',
+ 'SetCursorComponent',
+ 'CursorComponentChanged',
+ 'CursorComponentSetData',
]
def makegreylist(self):