summaryrefslogtreecommitdiffstats
path: root/gobject/propertyhelper.py
diff options
context:
space:
mode:
authorGustavo J. A. M. Carneiro <gjc@src.gnome.org>2007-06-16 11:54:03 +0000
committerGustavo J. A. M. Carneiro <gjc@src.gnome.org>2007-06-16 11:54:03 +0000
commit599dbc210b59f58018c89ebb2d34b2255ea61d05 (patch)
tree661752e56a594707662f8c262f374bcaadea6df9 /gobject/propertyhelper.py
parent00b12c72912c53aa541add7914a2c25784fb07e1 (diff)
downloadpygobject-599dbc210b59f58018c89ebb2d34b2255ea61d05.tar.gz
pygobject-599dbc210b59f58018c89ebb2d34b2255ea61d05.tar.xz
pygobject-599dbc210b59f58018c89ebb2d34b2255ea61d05.zip
Support type=GObject or type=TYPE_OBJECT in the new properties API.
svn path=/trunk/; revision=675
Diffstat (limited to 'gobject/propertyhelper.py')
-rw-r--r--gobject/propertyhelper.py4
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)