diff options
author | Johan Dahlin <johan@src.gnome.org> | 2005-11-13 22:27:46 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2005-11-13 22:27:46 +0000 |
commit | f7667274ddad61678b36f3bd639eba6195e2abc0 (patch) | |
tree | 8aa478c1d30440e9765b2732ae6c3d82c5837cd7 /gobject | |
parent | 397fefc87f3435d7ff72ce91a76d201102ec7d03 (diff) | |
download | pygtk-f7667274ddad61678b36f3bd639eba6195e2abc0.tar.gz |
Remove deprecation warning
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/gobjectmodule.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index f2a7d2e0..917a2b26 100644 --- a/gobject/gobjectmodule.c +++ b/gobject/gobjectmodule.c @@ -1002,20 +1002,8 @@ _wrap_pyg_type_register(PyObject *self, PyObject *args) { if (pyg_type_register(class, NULL)) return NULL; - } else { - gchar *msg; - /* already registered */ - msg = g_strdup_printf("Class %s is already GObject-registered; " - "Please note that classes containing any of the " - "attributes __gtype_name__, __gproperties__, or " - "__gsignals__ are now automatically registered.", - class->tp_name); - if (PyErr_Warn(PyExc_DeprecationWarning, msg)) { - g_free(msg); - return NULL; - } - g_free(msg); } + Py_INCREF(class); return (PyObject *) class; } |