Fix deprecated use of @GObject.property → @GObject.Property
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
97a4ab04d0
commit
e37016dc7b
|
@ -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
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue