summaryrefslogtreecommitdiffstats
path: root/gobject
diff options
context:
space:
mode:
Diffstat (limited to 'gobject')
-rw-r--r--gobject/gobjectmodule.c5
-rw-r--r--gobject/pygobject.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c
index 4881120..07eb8aa 100644
--- a/gobject/gobjectmodule.c
+++ b/gobject/gobjectmodule.c
@@ -3501,7 +3501,10 @@ struct _PyGObject_Functions pygobject_api_functions = {
disable_warning_redirections,
pyg_type_register_custom_callback,
- pyg_gerror_exception_check
+ pyg_gerror_exception_check,
+
+ pyg_option_group_new
+
};
#define REGISTER_TYPE(d, type, name) \
diff --git a/gobject/pygobject.h b/gobject/pygobject.h
index ef19f67..76ab437 100644
--- a/gobject/pygobject.h
+++ b/gobject/pygobject.h
@@ -198,9 +198,10 @@ struct _PyGObject_Functions {
PyGTypeRegistrationFunction callback,
gpointer data);
gboolean (*gerror_exception_check) (GError **error);
-
+ PyObject* (*option_group_new) (GOptionGroup *group);
};
+
#ifndef _INSIDE_PYGOBJECT_
#if defined(NO_IMPORT) || defined(NO_IMPORT_PYGOBJECT)
@@ -262,6 +263,7 @@ struct _PyGObject_Functions *_PyGObject_API;
#define pyg_disable_warning_redirections (_PyGObject_API->disable_warning_redirections)
#define pyg_type_register_custom_callback (_PyGObject_API->type_register_custom)
#define pyg_gerror_exception_check (_PyGObject_API->gerror_exception_check)
+#define pyg_option_group_new (_PyGObject_API->option_group_new)
#define pyg_block_threads() G_STMT_START { \