diff options
author | Johan Dahlin <johan@gnome.org> | 2008-07-26 10:38:36 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-07-26 10:38:36 +0000 |
commit | 31c7971dcad9d8e02cb59fe603bc6d83bf035666 (patch) | |
tree | 8d32eba9c98e2805ec617359a7ba8bfeaf1f4ac7 | |
parent | 81c0b0047e4cb411a1a74170dd02402da4f0769c (diff) | |
download | pygobject-31c7971dcad9d8e02cb59fe603bc6d83bf035666.tar.gz pygobject-31c7971dcad9d8e02cb59fe603bc6d83bf035666.tar.xz pygobject-31c7971dcad9d8e02cb59fe603bc6d83bf035666.zip |
Send in a PyObject instead of a PyGOptionGroup object.
2008-07-26 Johan Dahlin <johan@gnome.org>
* glib/pygoptioncontext.c (pyg_option_context_set_main_group),
(pyg_option_context_add_group):
Send in a PyObject instead of a PyGOptionGroup object.
svn path=/trunk/; revision=862
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | glib/pygoptioncontext.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,11 @@ 2008-07-26 Johan Dahlin <johan@gnome.org> + * glib/pygoptioncontext.c (pyg_option_context_set_main_group), + (pyg_option_context_add_group): + Send in a PyObject instead of a PyGOptionGroup object. + +2008-07-26 Johan Dahlin <johan@gnome.org> + * glib/Makefile.am: * glib/glibmodule.c (pyglib_register_constants), (init_glib): * glib/option.py: diff --git a/glib/pygoptioncontext.c b/glib/pygoptioncontext.c index 2baf36d..ea3c304 100644 --- a/glib/pygoptioncontext.c +++ b/glib/pygoptioncontext.c @@ -198,7 +198,7 @@ pyg_option_context_set_main_group(PyGOptionContext *self, return NULL; } - g_group = pyglib_option_group_transfer_group((PyGOptionGroup*) group); + g_group = pyglib_option_group_transfer_group(group); if (g_group == NULL) { PyErr_SetString(PyExc_RuntimeError, "Group is already in a OptionContext."); @@ -242,7 +242,7 @@ pyg_option_context_add_group(PyGOptionContext *self, "GOptionContext.add_group expects a GOptionGroup."); return NULL; } - g_group = pyglib_option_group_transfer_group((PyGOptionGroup*) group); + g_group = pyglib_option_group_transfer_group(group); if (g_group == NULL) { PyErr_SetString(PyExc_RuntimeError, |