summaryrefslogtreecommitdiff
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
commit6d29dfab1fc299853a483f49e3957b5f13fd072d (patch)
treee39d51b1a5a9b650b0331e94d43a6a983e4a665e
parent7dc62ace746abcb314851ff713f5411a12ee0b48 (diff)
downloadpygtk-6d29dfab1fc299853a483f49e3957b5f13fd072d.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.
-rw-r--r--ChangeLog6
-rw-r--r--gobject/gobjectmodule.c22
2 files changed, 18 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 0c92e012..b421ff51 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-09-29 Johan Dahlin <jdahlin@async.com.br>
+
+ * 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.
+
2005-09-28 Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
* tests/Makefile.am (tests): Add test_textview.py.
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)