diff --git a/tuhi/gui/config.py b/tuhi/gui/config.py index 158bfdc..2578e85 100644 --- a/tuhi/gui/config.py +++ b/tuhi/gui/config.py @@ -69,7 +69,7 @@ class Config(GObject.Object): self.config[section][key] = value self._write() - @GObject.property + @GObject.Property def orientation(self): try: return self.config['Device']['Orientation'] @@ -81,7 +81,7 @@ class Config(GObject.Object): assert(orientation in ['landscape', 'portrait']) self._add_key('Device', 'Orientation', orientation) - @GObject.property + @GObject.Property def drawings(self): return self._drawings diff --git a/tuhi/gui/drawingperspective.py b/tuhi/gui/drawingperspective.py index 95708b8..ec47d36 100644 --- a/tuhi/gui/drawingperspective.py +++ b/tuhi/gui/drawingperspective.py @@ -55,7 +55,7 @@ class Flowbox(Gtk.Box): self.flowbox_drawings.remove(child) self.flowbox_drawings.foreach(delete_matching_child, drawing) - @GObject.property + @GObject.Property def is_empty(self): return not self.flowbox_drawings.get_children() diff --git a/tuhi/wacom.py b/tuhi/wacom.py index e432191..ef3bcc6 100644 --- a/tuhi/wacom.py +++ b/tuhi/wacom.py @@ -479,7 +479,7 @@ class WacomProtocolBase(WacomProtocolLowLevelComm): device.connect_gatt_value(WACOM_OFFLINE_CHRC_PEN_DATA_UUID, self._on_pen_data_received) - @GObject.property + @GObject.Property def dimensions(self): return (self.width, self.height)