Fix deprecated use of @GObject.property → @GObject.Property

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
pull/209/head
Peter Hutterer 2019-08-29 09:34:08 +10:00
parent 97a4ab04d0
commit e37016dc7b
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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()

View File

@ -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)