[pygobject] [gi] set the gtype GValue correctly
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] [gi] set the gtype GValue correctly
- Date: Fri, 21 Jan 2011 15:44:42 +0000 (UTC)
commit f5d0b7b9d189f65503c0bf66d8bda4186ca3223a
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Jan 21 16:45:07 2011 +0100
[gi] set the gtype GValue correctly
gi/pygi-property.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/pygi-property.c b/gi/pygi-property.c
index 5e2c6d6..2f8970d 100644
--- a/gi/pygi-property.c
+++ b/gi/pygi-property.c
@@ -139,7 +139,7 @@ pygi_get_property_value_real (PyGObject *instance,
arg.v_double = g_value_get_double (&value);
break;
case GI_TYPE_TAG_GTYPE:
- arg.v_size = g_value_get_uint (&value);
+ arg.v_size = g_value_get_gtype (&value);
break;
case GI_TYPE_TAG_UTF8:
case GI_TYPE_TAG_FILENAME:
@@ -314,7 +314,7 @@ pygi_set_property_value_real (PyGObject *instance,
g_value_set_double (&value, arg.v_double);
break;
case GI_TYPE_TAG_GTYPE:
- g_value_set_uint (&value, arg.v_size);
+ g_value_set_gtype (&value, arg.v_size);
break;
case GI_TYPE_TAG_UTF8:
case GI_TYPE_TAG_FILENAME:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]