summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-07-26 10:38:36 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-07-26 10:38:36 +0000
commit31c7971dcad9d8e02cb59fe603bc6d83bf035666 (patch)
tree8d32eba9c98e2805ec617359a7ba8bfeaf1f4ac7
parent81c0b0047e4cb411a1a74170dd02402da4f0769c (diff)
downloadpygobject-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--ChangeLog6
-rw-r--r--glib/pygoptioncontext.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5e01796..6979eeb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,