summaryrefslogtreecommitdiff
path: root/gi/gimodule.h
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2019-10-04 16:12:19 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2019-10-04 18:11:40 +0200
commit28962d865f5f4f8e0cf5ba56d1660c06c65e9cff (patch)
tree4066b1acaf95561c3e6be3a00138f9d6791224d0 /gi/gimodule.h
parent783ee44661fa3ce3cceb67ac8eaabae4e06e3290 (diff)
downloadpygobject-28962d865f5f4f8e0cf5ba56d1660c06c65e9cff.tar.gz
Port to g_object_new_with_properties()
g_object_newv() and GParameter are deprecated now. Replace all GParameter usage with a separate GValue and char* array and add a compatibility function for g_object_new_with_properties() that also works with older glib and converts things back to GParameter.
Diffstat (limited to 'gi/gimodule.h')
-rw-r--r--gi/gimodule.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/gi/gimodule.h b/gi/gimodule.h
index 7917ef6a..b9274bc4 100644
--- a/gi/gimodule.h
+++ b/gi/gimodule.h
@@ -4,7 +4,14 @@
#include "pygobject-internal.h"
int pygobject_constructv (PyGObject *self,
- guint n_parameters,
- GParameter *parameters);
+ guint n_properties,
+ const char *names[],
+ const GValue values[]);
+
+GObject *
+pygobject_object_new_with_properties(GType object_type,
+ guint n_properties,
+ const char *names[],
+ const GValue values[]);
#endif /*_PYGOBJECT_GIMODULE_H_*/