device: use "Name" instead of "Description"

This is the terminology used in libratbag as well (and everywhere else where
we deal with input devices).

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2016-03-15 13:21:56 +10:00
parent 00f488dc13
commit ff3730f3fb
3 changed files with 16 additions and 16 deletions

View File

@@ -88,7 +88,7 @@ class RatbagdDevice(_RatbagdDBus):
def __init__(self, object_path):
_RatbagdDBus.__init__(self, "Device", object_path)
self._devnode = self.dbus_property("Id")
self._description = self.dbus_property("Description")
self._name = self.dbus_property("Name")
self._svg = self.dbus_property("Svg")
self._svg_path = self.dbus_property("SvgPath")
@@ -109,11 +109,11 @@ class RatbagdDevice(_RatbagdDBus):
return self._profiles
@property
def description(self):
def name(self):
"""
The device name, usually provided by the kernel.
"""
return self._description
return self._name
@property
def svg(self):