diff options
author | Johan Dahlin <johan@src.gnome.org> | 2005-09-29 14:22:33 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2005-09-29 14:22:33 +0000 |
commit | 9e66fd620a355c24550231dc6db979119576e015 (patch) | |
tree | 8f2833c5832f25c20851f43930d59551b7334710 /gobject | |
parent | 967b449e0c608baa4760292eaa832d2953c29e3f (diff) | |
download | pygobject-9e66fd620a355c24550231dc6db979119576e015.tar.gz |
Undeprecate for now.
* gobject/gobjectmodule.c: (pyg_type_name), (pyg_type_from_name),
(pyg_type_parent), (pyg_type_is_a), (pyg_type_children),
(pyg_type_interfaces): Undeprecate for now.
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/gobjectmodule.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index f07be357..92393a83 100644 --- a/gobject/gobjectmodule.c +++ b/gobject/gobjectmodule.c @@ -242,10 +242,12 @@ pyg_type_name (PyObject *self, PyObject *args) GType type; const gchar *name; +#if 0 if (PyErr_Warn(PyExc_DeprecationWarning, "gobject.type_name is deprecated; " "use GType.name instead")) return NULL; +#endif if (!PyArg_ParseTuple(args, "O:gobject.type_name", >ype)) return NULL; @@ -263,12 +265,12 @@ pyg_type_from_name (PyObject *self, PyObject *args) { const gchar *name; GType type; - +#if 0 if (PyErr_Warn(PyExc_DeprecationWarning, "gobject.type_from_name is deprecated; " "use GType.from_name instead")) return NULL; - +#endif if (!PyArg_ParseTuple(args, "s:gobject.type_from_name", &name)) return NULL; type = g_type_from_name(name); @@ -285,12 +287,12 @@ pyg_type_parent (PyObject *self, PyObject *args) { PyObject *gtype; GType type, parent; - +#if 0 if (PyErr_Warn(PyExc_DeprecationWarning, "gobject.type_parent is deprecated; " "use GType.parent instead")) return NULL; - +#endif if (!PyArg_ParseTuple(args, "O:gobject.type_parent", >ype)) return NULL; if ((type = pyg_type_from_object(gtype)) == 0) @@ -307,12 +309,12 @@ pyg_type_is_a (PyObject *self, PyObject *args) { PyObject *gtype, *gparent; GType type, parent; - +#if 0 if (PyErr_Warn(PyExc_DeprecationWarning, "gobject.type_is_a is deprecated; " "use GType.is_a instead")) return NULL; - +#endif if (!PyArg_ParseTuple(args, "OO:gobject.type_is_a", >ype, &gparent)) return NULL; if ((type = pyg_type_from_object(gtype)) == 0) @@ -328,12 +330,12 @@ pyg_type_children (PyObject *self, PyObject *args) PyObject *gtype, *list; GType type, *children; guint n_children, i; - +#if 0 if (PyErr_Warn(PyExc_DeprecationWarning, "gobject.type_children is deprecated; " "use GType.children instead")) return NULL; - +#endif if (!PyArg_ParseTuple(args, "O:gobject.type_children", >ype)) return NULL; if ((type = pyg_type_from_object(gtype)) == 0) @@ -359,12 +361,12 @@ pyg_type_interfaces (PyObject *self, PyObject *args) PyObject *gtype, *list; GType type, *interfaces; guint n_interfaces, i; - +#if 0 if (PyErr_Warn(PyExc_DeprecationWarning, "gobject.type_interfaces is deprecated; " "use GType.interfaces instead")) return NULL; - +#endif if (!PyArg_ParseTuple(args, "O:gobject.type_interfaces", >ype)) return NULL; if ((type = pyg_type_from_object(gtype)) == 0) |