summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSimon Feltman <s.feltman@gmail.com>2012-03-16 00:29:31 -0700
committerMartin Pitt <martin.pitt@ubuntu.com>2012-03-16 12:27:21 +0100
commita906b7d1947ba905f959d3f738eb6c29b02f96e7 (patch)
treedf21e1f0f3cecd00399eedfaa42e9879966d0ece /examples
parentd7d28d717e38c0546529b09b8b571a5cc631c5b5 (diff)
downloadpygobject-a906b7d1947ba905f959d3f738eb6c29b02f96e7.tar.gz
Renamed "property" class to "Property"
Renamed to match the rest of the class names in GObject and also not clobber the builtin python property. Keep the old "property" identifier for backwards compatibility for now. https://bugzilla.gnome.org/show_bug.cgi?id=672168 Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/properties.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/properties.py b/examples/properties.py
index f71ea83e..eebfb163 100644
--- a/examples/properties.py
+++ b/examples/properties.py
@@ -2,13 +2,13 @@ from gi.repository import GObject
class MyObject(GObject.GObject):
- foo = GObject.property(type=str, default='bar')
- boolprop = GObject.property(type=bool, default=False)
+ foo = GObject.Property(type=str, default='bar')
+ boolprop = GObject.Property(type=bool, default=False)
def __init__(self):
GObject.GObject.__init__(self)
- @GObject.property
+ @GObject.Property
def readonly(self):
return 'readonly'