summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gobject/gobjectmodule.c8
-rw-r--r--gobject/pygobject.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c
index 9790a9a..4eef252 100644
--- a/gobject/gobjectmodule.c
+++ b/gobject/gobjectmodule.c
@@ -29,7 +29,7 @@ pygobject_destroy_notify(gpointer user_data)
static void
pygobject_register_class(PyObject *dict, const gchar *class_name,
- PyExtensionClass *ec, PyExtensionClass *parent)
+ PyExtensionClass *ec, PyObject *bases)
{
if (!class_hash)
class_hash = g_hash_table_new(g_str_hash, g_str_equal);
@@ -42,9 +42,9 @@ pygobject_register_class(PyObject *dict, const gchar *class_name,
if (!ec->tp_repr) ec->tp_repr = (reprfunc)pygobject_repr;
if (!ec->tp_hash) ec->tp_hash = (hashfunc)pygobject_hash;
- if (parent) {
- PyExtensionClass_ExportSubclassSingle(dict, (char *)class_name,
- *ec, *parent);
+ if (bases) {
+ PyExtensionClass_ExportSubclass(dict, (char *)class_name,
+ *ec, bases);
} else {
PyExtensionClass_Export(dict, (char *)class_name, *ec);
}
diff --git a/gobject/pygobject.h b/gobject/pygobject.h
index 8823514..2e0a7d7 100644
--- a/gobject/pygobject.h
+++ b/gobject/pygobject.h
@@ -20,7 +20,7 @@ typedef struct {
struct _PyGObject_Functions {
void (* register_class)(PyObject *dict, const gchar *class_name,
- PyExtensionClass *ec, PyExtensionClass *parent);
+ PyExtensionClass *ec, PyObject *bases);
void (* register_wrapper)(PyObject *self);
PyExtensionClass *(* lookup_class)(GType type);
PyObject *(* new)(GObject *obj);