[pygobject/invoke-rewrite] [gi-invoke-ng] import pytypes so we get overrides
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/invoke-rewrite] [gi-invoke-ng] import pytypes so we get overrides
- Date: Wed, 15 Jun 2011 15:25:41 +0000 (UTC)
commit 902575d857beffb14e56821ea8a52f705385f6bb
Author: John (J5) Palmieri <johnp redhat com>
Date: Wed Jun 15 11:25:10 2011 -0400
[gi-invoke-ng] import pytypes so we get overrides
gi/pygi-marshal.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygi-marshal.c b/gi/pygi-marshal.c
index 13bc5cb..22682b8 100644
--- a/gi/pygi-marshal.c
+++ b/gi/pygi-marshal.c
@@ -1341,7 +1341,9 @@ gboolean _pygi_marshal_in_interface_instance (PyGIInvokeState *state,
GType type = iface_cache->g_type;
if (g_type_is_a (type, G_TYPE_BOXED)) {
arg->v_pointer = pyg_boxed_get (py_arg, void);
- } else if (g_type_is_a (type, G_TYPE_POINTER) || type == G_TYPE_NONE) {
+ } else if (g_type_is_a (type, G_TYPE_POINTER) ||
+ g_type_is_a (type, G_TYPE_VARIANT) ||
+ type == G_TYPE_NONE) {
arg->v_pointer = pyg_pointer_get (py_arg, void);
} else {
PyErr_Format (PyExc_TypeError, "unable to convert an instance of '%s'", g_type_name (type));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]