James Henstridge <[EMAIL PROTECTED]> writes:
> In your python module, put this close to the top:
>
> typedef struct {
> PyObject_HEAD
> GdkWindow *obj;
> } PyGdkWindow_Object;
> static PyTypeObject *PyGdkWindow_Type;
> #define PyGdkWindow_Check(op) ((op)->ob_type == PyGdkWindow_Type)
> #define PyGdkWindow_Get(op) (((PyGdkWindow_Object *)(op))->obj)
Hm. I'd feel better about this solution if the declarations of
PyGxkXxx_Object, PyGxkXxx_Check and PyGxkXxx_Get were moved to a
header file that was installed by the "make install" target, so I
didn't have to duplicate them inside my code.
-- Ture
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]