From 2c9df6000e93158e14cf279e0cf3ee19acad11d0 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Sun, 27 Jul 2008 09:49:13 +0000 Subject: Add a Py_TYPE macro for accessing ob_type. 2008-07-27 Johan Dahlin * glib/pyglib-python-compat.h: Add a Py_TYPE macro for accessing ob_type. * glib/glibmodule.c (pyglib_register_constants): * gobject/gobjectmodule.c (pygobject__g_instance_init), (pyg_integer_richcompare): * gobject/pygenum.c (pyg_enum_repr), (pyg_enum_from_gtype), (pyg_enum_add), (pyg_enum_get_value_name), (pyg_enum_get_value_nick): * gobject/pygflags.c (pyg_flags_repr), (pyg_flags_from_gtype), (pyg_flags_add), (pyg_flags_and), (pyg_flags_or), (pyg_flags_xor), (pyg_flags_get_first_value_name), (pyg_flags_get_first_value_nick), (pyg_flags_get_value_names), (pyg_flags_get_value_nicks): Use Py_TYPE and PyLong macros to access struct fields svn path=/trunk/; revision=885 --- glib/glibmodule.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'glib/glibmodule.c') diff --git a/glib/glibmodule.c b/glib/glibmodule.c index 9228057..1f3194c 100644 --- a/glib/glibmodule.c +++ b/glib/glibmodule.c @@ -519,7 +519,6 @@ pyglib_set_prgname(PyObject *self, PyObject *args) return Py_None; } - static PyMethodDef _glib_functions[] = { { "spawn_async", (PyCFunction)pyglib_spawn_async, METH_VARARGS|METH_KEYWORDS }, @@ -623,7 +622,6 @@ pyglib_register_version_tuples(PyObject *d) static void pyglib_register_constants(PyObject *m) { - PyModule_AddIntConstant(m, "SPAWN_LEAVE_DESCRIPTORS_OPEN", G_SPAWN_LEAVE_DESCRIPTORS_OPEN); PyModule_AddIntConstant(m, "SPAWN_DO_NOT_REAP_CHILD", -- cgit