diff options
Diffstat (limited to 'gobject/propertyhelper.py')
-rw-r--r-- | gobject/propertyhelper.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gobject/propertyhelper.py b/gobject/propertyhelper.py index 7f9197a..c382c83 100644 --- a/gobject/propertyhelper.py +++ b/gobject/propertyhelper.py @@ -173,6 +173,8 @@ class property(object): return TYPE_STRING elif type == object: return TYPE_PYOBJECT + elif type == _gobject.GObject: + return TYPE_OBJECT elif type in [TYPE_NONE, TYPE_INTERFACE, TYPE_CHAR, TYPE_UCHAR, TYPE_INT, TYPE_UINT, TYPE_BOOLEAN, TYPE_LONG, TYPE_ULONG, TYPE_INT64, TYPE_UINT64, TYPE_ENUM, @@ -279,6 +281,8 @@ class property(object): args = (self.default,) elif ptype == TYPE_PYOBJECT: args = () + elif ptype == TYPE_OBJECT: + args = () else: raise NotImplementedError(ptype) |