summaryrefslogtreecommitdiffstats
path: root/gobject
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2007-11-05 16:48:37 +0000
committerJohan Dahlin <johan@src.gnome.org>2007-11-05 16:48:37 +0000
commitc7d3929c2562cfc86b7164fa2dd24c0cd140f3b8 (patch)
tree3abbe00462bca606a3e2af2f0f066787d205ca33 /gobject
parente624121ffa7ece38d111448ca5064d0528101967 (diff)
downloadpygobject-c7d3929c2562cfc86b7164fa2dd24c0cd140f3b8.tar.gz
pygobject-c7d3929c2562cfc86b7164fa2dd24c0cd140f3b8.tar.xz
pygobject-c7d3929c2562cfc86b7164fa2dd24c0cd140f3b8.zip
Add pyg_option_group_new to the public API
2007-11-05 Johan Dahlin <johan@gnome.org> * gobject/pygobject.h: * gobject/gobjectmodule.c: Add pyg_option_group_new to the public API * configure.ac: Branch, bump version to 2.15.0. svn path=/trunk/; revision=714
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 { \