From e37016dc7baf6d038af55d3195c2981b07af130f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 29 Aug 2019 09:34:08 +1000 Subject: [PATCH] =?UTF-8?q?Fix=20deprecated=20use=20of=20@GObject.property?= =?UTF-8?q?=20=E2=86=92=20@GObject.Property?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Hutterer --- tuhi/gui/config.py | 4 ++-- tuhi/gui/drawingperspective.py | 2 +- tuhi/wacom.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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)