diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2023-05-22 20:56:32 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2023-05-22 20:56:32 (GMT) | 
| commit | e1a2823b5d831349467d309ce42d56055ec9c04f (patch) | |
| tree | bc4dd464d10cd379622ceb361398895d59849409 /plugins/pychrysalide/glibext/singleton.c | |
| parent | 15fb909bdd8ca0f37dd71da7427ea6bc6bb71cbb (diff) | |
Rely on GObject-introspection implementation for some registrations.
Diffstat (limited to 'plugins/pychrysalide/glibext/singleton.c')
| -rw-r--r-- | plugins/pychrysalide/glibext/singleton.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/pychrysalide/glibext/singleton.c b/plugins/pychrysalide/glibext/singleton.c index d00648c..8491473 100644 --- a/plugins/pychrysalide/glibext/singleton.c +++ b/plugins/pychrysalide/glibext/singleton.c @@ -922,7 +922,7 @@ static PyObject *py_singleton_factory_new(PyTypeObject *type, PyObject *args, Py      if (first_time)      { -        status = register_class_for_dynamic_pygobject(gtype, type, base); +        status = register_class_for_dynamic_pygobject(gtype, type);          if (!status)          { @@ -1110,7 +1110,7 @@ bool ensure_python_singleton_factory_is_registered(void)          dict = PyModule_GetDict(module); -        if (!register_class_for_pygobject(dict, G_TYPE_SINGLETON_FACTORY, type, &PyGObject_Type)) +        if (!register_class_for_pygobject(dict, G_TYPE_SINGLETON_FACTORY, type))              return false;      }  | 
