diff options
| author | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2005-07-09 18:25:32 +0000 |
|---|---|---|
| committer | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2005-07-09 18:25:32 +0000 |
| commit | 83a43997b2136c6f5337219ddfe6aa6829d66fae (patch) | |
| tree | e31a18b2a0f0fcc7cb55849c88c2afa12aa85d3d /gobject/pygobject.h | |
| parent | 49eabd6c5ab0b3c849bd03bd2149b47e50f19aee (diff) | |
| download | pygobject-83a43997b2136c6f5337219ddfe6aa6829d66fae.tar.gz pygobject-83a43997b2136c6f5337219ddfe6aa6829d66fae.tar.xz pygobject-83a43997b2136c6f5337219ddfe6aa6829d66fae.zip | |
Bug 161177: Allow creation of python classes from g_object_new
Diffstat (limited to 'gobject/pygobject.h')
| -rw-r--r-- | gobject/pygobject.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gobject/pygobject.h b/gobject/pygobject.h index 18c50c0..3bba3ac 100644 --- a/gobject/pygobject.h +++ b/gobject/pygobject.h @@ -166,6 +166,13 @@ struct _PyGObject_Functions { void (*register_class_init) (GType gtype, PyGClassInitFunc class_init); void (*register_interface_info) (GType gtype, const GInterfaceInfo *info); void (*closure_set_exception_handler) (GClosure *closure, PyClosureExceptionHandler handler); + int (*pygobject_constructv) (PyGObject *self, + guint n_parameters, + GParameter *parameters); + int (*pygobject_construct) (PyGObject *self, + const char *first_property_name, + ...); + void (*set_object_has_new_constructor) (GType type); }; #ifndef _INSIDE_PYGOBJECT_ @@ -222,6 +229,10 @@ struct _PyGObject_Functions *_PyGObject_API; #define pyg_enable_threads (_PyGObject_API->enable_threads) #define pyg_register_class_init (_PyGObject_API->register_class_init) #define pyg_register_interface_info (_PyGObject_API->register_interface_info) +#define pygobject_construct (_PyGObject_API->pygobject_construct) +#define pygobject_constructv (_PyGObject_API->pygobject_constructv) +#define pyg_set_object_has_new_constructor (_PyGObject_API->set_object_has_new_constructor) + #define pyg_block_threads() G_STMT_START { \ if (_PyGObject_API->block_threads != NULL) \ |
