dbusclient: drop the word Kete from the generic dbus client bindings
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
28f92882ec
commit
2d142b4be3
|
@ -149,7 +149,7 @@ class BlueZDevice(_DBusSystemObject):
|
|||
self.notify('connected')
|
||||
|
||||
|
||||
class TuhiKeteDevice(_DBusObject):
|
||||
class TuhiDBusClientDevice(_DBusObject):
|
||||
__gsignals__ = {
|
||||
'button-press-required':
|
||||
(GObject.SignalFlags.RUN_FIRST, None, (GObject.TYPE_PYOBJECT,)),
|
||||
|
@ -291,7 +291,7 @@ class TuhiKeteDevice(_DBusObject):
|
|||
super().terminate()
|
||||
|
||||
|
||||
class TuhiKeteManager(_DBusObject):
|
||||
class TuhiDBusClientManager(_DBusObject):
|
||||
__gsignals__ = {
|
||||
'unregistered-device':
|
||||
(GObject.SignalFlags.RUN_FIRST, None, (GObject.TYPE_PYOBJECT,)),
|
||||
|
@ -312,7 +312,7 @@ class TuhiKeteManager(_DBusObject):
|
|||
def _init(self, *args, **kwargs):
|
||||
logger.info('manager is online')
|
||||
for objpath in self.property('Devices'):
|
||||
device = TuhiKeteDevice(self, objpath)
|
||||
device = TuhiDBusClientDevice(self, objpath)
|
||||
self._devices[device.address] = device
|
||||
|
||||
@GObject.Property
|
||||
|
@ -375,7 +375,7 @@ class TuhiKeteManager(_DBusObject):
|
|||
self.emit('unregistered-device', dev)
|
||||
return
|
||||
|
||||
device = TuhiKeteDevice(self, objpath)
|
||||
device = TuhiDBusClientDevice(self, objpath)
|
||||
self._unregistered_devices[objpath] = device
|
||||
|
||||
logger.debug(f'New unregistered device: {device}')
|
||||
|
|
|
@ -16,7 +16,7 @@ from gi.repository import Gtk, Gio, GLib, GObject
|
|||
|
||||
from .drawingperspective import DrawingPerspective
|
||||
from .config import Config
|
||||
from tuhi.dbusclient import TuhiKeteManager
|
||||
from tuhi.dbusclient import TuhiDBusClientManager
|
||||
|
||||
import logging
|
||||
import gi
|
||||
|
@ -132,7 +132,7 @@ class MainWindow(Gtk.ApplicationWindow):
|
|||
super().__init__(**kwargs)
|
||||
|
||||
self.maximize()
|
||||
self._tuhi = TuhiKeteManager()
|
||||
self._tuhi = TuhiDBusClientManager()
|
||||
|
||||
action = Gio.SimpleAction.new_stateful('orientation', GLib.VariantType('s'),
|
||||
GLib.Variant('s', 'landscape'))
|
||||
|
|
Loading…
Reference in New Issue