diff options
Diffstat (limited to 'tests/test_interface.py')
-rw-r--r-- | tests/test_interface.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/test_interface.py b/tests/test_interface.py index d54515d..4413d64 100644 --- a/tests/test_interface.py +++ b/tests/test_interface.py @@ -3,15 +3,13 @@ import unittest import testmodule from common import gobject, testhelper from gobject import GObject, GInterface +import gobject GUnknown = gobject.type_from_name("TestUnknown") Unknown = GUnknown.pytype class MyUnknown(Unknown, testhelper.Interface): - __gproperties__ = { - 'some-property': (str, 'blurb', 'description', 'default', - gobject.PARAM_READWRITE), - } + some_property = gobject.property(type=str) def __init__(self): Unknown.__init__(self) @@ -24,10 +22,7 @@ class MyUnknown(Unknown, testhelper.Interface): gobject.type_register(MyUnknown) class MyObject(gobject.GObject, testhelper.Interface): - __gproperties__ = { - 'some-property': (str, 'blurb', 'description', 'default', - gobject.PARAM_READWRITE), - } + some_property = gobject.property(type=str) def __init__(self): GObject.__init__(self) |