summaryrefslogtreecommitdiff
path: root/gobject
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2005-09-29 14:22:33 +0000
committerJohan Dahlin <johan@src.gnome.org>2005-09-29 14:22:33 +0000
commit9e66fd620a355c24550231dc6db979119576e015 (patch)
tree8f2833c5832f25c20851f43930d59551b7334710 /gobject
parent967b449e0c608baa4760292eaa832d2953c29e3f (diff)
downloadpygobject-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.c22
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", &gtype))
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", &gtype))
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", &gtype, &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", &gtype))
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", &gtype))
return NULL;
if ((type = pyg_type_from_object(gtype)) == 0)