From a906b7d1947ba905f959d3f738eb6c29b02f96e7 Mon Sep 17 00:00:00 2001 From: Simon Feltman Date: Fri, 16 Mar 2012 00:29:31 -0700 Subject: 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 --- examples/properties.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') 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' -- cgit v1.2.1