From f69ce9f5f6cd81b057ed0006d1fe7f71fa294943 Mon Sep 17 00:00:00 2001 From: Mathieu Bridon Date: Sun, 5 Jul 2015 11:07:00 +0200 Subject: Handle gtype marshalling https://bugzilla.gnome.org/show_bug.cgi?id=749696 --- gi/pygi-argument.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gi/pygi-argument.c b/gi/pygi-argument.c index 0c322e8c..fdd461a7 100644 --- a/gi/pygi-argument.c +++ b/gi/pygi-argument.c @@ -95,6 +95,9 @@ _pygi_hash_pointer_to_arg (GIArgument *arg, case GI_TYPE_TAG_UINT32: arg->v_uint32 = GPOINTER_TO_UINT (arg->v_pointer); break; + case GI_TYPE_TAG_GTYPE: + arg->v_size = GPOINTER_TO_SIZE (arg->v_pointer); + break; case GI_TYPE_TAG_UTF8: case GI_TYPE_TAG_FILENAME: case GI_TYPE_TAG_INTERFACE: @@ -121,6 +124,8 @@ _pygi_arg_to_hash_pointer (const GIArgument *arg, return GINT_TO_POINTER (arg->v_int32); case GI_TYPE_TAG_UINT32: return GINT_TO_POINTER (arg->v_uint32); + case GI_TYPE_TAG_GTYPE: + return GSIZE_TO_POINTER (arg->v_size); case GI_TYPE_TAG_UTF8: case GI_TYPE_TAG_FILENAME: case GI_TYPE_TAG_INTERFACE: -- cgit v1.2.1