summaryrefslogtreecommitdiff
path: root/plugins/yaml/python
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-05-22 20:56:32 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-05-22 20:56:32 (GMT)
commite1a2823b5d831349467d309ce42d56055ec9c04f (patch)
treebc4dd464d10cd379622ceb361398895d59849409 /plugins/yaml/python
parent15fb909bdd8ca0f37dd71da7427ea6bc6bb71cbb (diff)
Rely on GObject-introspection implementation for some registrations.
Diffstat (limited to 'plugins/yaml/python')
-rw-r--r--plugins/yaml/python/collection.c4
-rw-r--r--plugins/yaml/python/node.c2
-rw-r--r--plugins/yaml/python/pair.c4
3 files changed, 7 insertions, 3 deletions
diff --git a/plugins/yaml/python/collection.c b/plugins/yaml/python/collection.c
index f8e29b3..a3ea76c 100644
--- a/plugins/yaml/python/collection.c
+++ b/plugins/yaml/python/collection.c
@@ -253,7 +253,9 @@ bool register_python_yaml_collection(PyObject *module)
dict = PyModule_GetDict(module);
- if (!register_class_for_pygobject(dict, G_TYPE_YAML_COLLEC, type, get_python_yaml_node_type()))
+ /* TODO : ensure get_python_yaml_node_type() */
+
+ if (!register_class_for_pygobject(dict, G_TYPE_YAML_COLLEC, type))
return false;
return true;
diff --git a/plugins/yaml/python/node.c b/plugins/yaml/python/node.c
index ad030ed..7f7c383 100644
--- a/plugins/yaml/python/node.c
+++ b/plugins/yaml/python/node.c
@@ -175,7 +175,7 @@ bool register_python_yaml_node(PyObject *module)
dict = PyModule_GetDict(module);
- if (!register_class_for_pygobject(dict, G_TYPE_YAML_NODE, type, &PyGObject_Type))
+ if (!register_class_for_pygobject(dict, G_TYPE_YAML_NODE, type))
return false;
return true;
diff --git a/plugins/yaml/python/pair.c b/plugins/yaml/python/pair.c
index 65132f6..59ca0a9 100644
--- a/plugins/yaml/python/pair.c
+++ b/plugins/yaml/python/pair.c
@@ -530,7 +530,9 @@ bool register_python_yaml_pair(PyObject *module)
dict = PyModule_GetDict(module);
- if (!register_class_for_pygobject(dict, G_TYPE_YAML_PAIR, type, get_python_yaml_node_type()))
+ /* TODO : get_python_yaml_node_type() */
+
+ if (!register_class_for_pygobject(dict, G_TYPE_YAML_PAIR, type))
return false;
if (!define_yaml_pair_constants(type))