diff options
author | Johan Dahlin <johan@src.gnome.org> | 2007-05-01 15:54:05 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2007-05-01 15:54:05 +0000 |
commit | a57fde73b509adcf56a73ae1fb97474d136fd2af (patch) | |
tree | 808278f44be0091211dd0113d6293ea0d6510583 /tests/test_interface.py | |
parent | ecbf8b6315dda927f4f90d8651033eb67c46a187 (diff) | |
download | pygobject-a57fde73b509adcf56a73ae1fb97474d136fd2af.tar.gz pygobject-a57fde73b509adcf56a73ae1fb97474d136fd2af.tar.xz pygobject-a57fde73b509adcf56a73ae1fb97474d136fd2af.zip |
Add a property helper, fixes #338098
* examples/properties.py:
* gobject/Makefile.am:
* gobject/__init__.py:
* gobject/constants.py.in:
* gobject/generate-constants.c: (main):
* gobject/propertyhelper.py:
* tests/Makefile.am:
* tests/test_enum.py:
* tests/test_interface.py:
* tests/test_properties.py:
Add a property helper, fixes #338098
svn path=/trunk/; revision=662
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) |