summaryrefslogtreecommitdiff
path: root/gi/pygi-argument.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:43:44 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:43:48 +0900
commit7447e4c02524c21cd0c3160a427dbe8cff83a7e1 (patch)
treedda4cab615d3dd6c09bbb776d3b5b7930a6fe932 /gi/pygi-argument.c
parent34b73082a6fa173f26b5d519393c4c75eef5d390 (diff)
downloadpygobject2-7447e4c02524c21cd0c3160a427dbe8cff83a7e1.tar.gz
pygobject2-7447e4c02524c21cd0c3160a427dbe8cff83a7e1.tar.bz2
pygobject2-7447e4c02524c21cd0c3160a427dbe8cff83a7e1.zip
Imported Upstream version 3.17.90
Change-Id: Iad22098f78874f80422829788d71b474602eda4e Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'gi/pygi-argument.c')
-rw-r--r--gi/pygi-argument.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gi/pygi-argument.c b/gi/pygi-argument.c
index 0c322e8..fdd461a 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: