summaryrefslogtreecommitdiff
path: root/gi/_gobject/propertyhelper.py
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:38:02 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:38:04 +0900
commit29998f132340ca4cd556e642dad4157cecb2b3ca (patch)
treea5d5d06967d58994dfb3a58eeea1e6b96de32e46 /gi/_gobject/propertyhelper.py
parent761a71bb8692ba42c26ed5ef872c4209b20bc470 (diff)
downloadpygobject2-29998f132340ca4cd556e642dad4157cecb2b3ca.tar.gz
pygobject2-29998f132340ca4cd556e642dad4157cecb2b3ca.tar.bz2
pygobject2-29998f132340ca4cd556e642dad4157cecb2b3ca.zip
Imported Upstream version 3.0.2
Change-Id: I278e3c05ec1778d62d4bc839d2089cfb2ef1012c Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'gi/_gobject/propertyhelper.py')
-rw-r--r--gi/_gobject/propertyhelper.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gi/_gobject/propertyhelper.py b/gi/_gobject/propertyhelper.py
index 0d8a32f..4635350 100644
--- a/gi/_gobject/propertyhelper.py
+++ b/gi/_gobject/propertyhelper.py
@@ -189,7 +189,8 @@ class property(object):
return TYPE_PYOBJECT
elif (isinstance(type_, type) and
issubclass(type_, (_gobject.GObject,
- _gobject.GEnum))):
+ _gobject.GEnum,
+ _gobject.GBoxed))):
return type_.__gtype__
elif type_ in [TYPE_NONE, TYPE_INTERFACE, TYPE_CHAR, TYPE_UCHAR,
TYPE_INT, TYPE_UINT, TYPE_BOOLEAN, TYPE_LONG,
@@ -303,7 +304,7 @@ class property(object):
args = (self.default,)
elif ptype == TYPE_PYOBJECT:
args = ()
- elif ptype.is_a(TYPE_OBJECT):
+ elif ptype.is_a(TYPE_OBJECT) or ptype.is_a(TYPE_BOXED):
args = ()
else:
raise NotImplementedError(ptype)