mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
tools: drop the resolution capabilities from the python bindings
Should've been part of 30c482aab2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -444,16 +444,6 @@ class RatbagdResolution(metaclass=MetaRatbag):
|
||||
"""The index of this resolution."""
|
||||
return self._id
|
||||
|
||||
@property
|
||||
def capabilities(self):
|
||||
"""The capabilities of this resolution as a list. Capabilities not
|
||||
present on the resolution are not in the list. Thus use e.g.
|
||||
|
||||
if RatbagdResolution.CAP_SEPARATE_XY_RESOLUTION is in resolution.capabilities:
|
||||
do something
|
||||
"""
|
||||
return self._capabilities
|
||||
|
||||
@property
|
||||
def resolution(self):
|
||||
"""The tuple (xres, yres) with each resolution in DPI."""
|
||||
|
||||
@@ -515,8 +515,6 @@ class RatbagdProfile(_RatbagdDBus):
|
||||
class RatbagdResolution(_RatbagdDBus):
|
||||
"""Represents a ratbagd resolution."""
|
||||
|
||||
CAP_SEPARATE_XY_RESOLUTION = 1
|
||||
|
||||
def __init__(self, object_path):
|
||||
_RatbagdDBus.__init__(self, "Resolution", object_path)
|
||||
self._active = self._get_dbus_property("IsActive")
|
||||
@@ -539,16 +537,6 @@ class RatbagdResolution(_RatbagdDBus):
|
||||
"""The index of this resolution."""
|
||||
return self._get_dbus_property("Index")
|
||||
|
||||
@GObject.Property
|
||||
def capabilities(self):
|
||||
"""The capabilities of this resolution as a list. Capabilities not
|
||||
present on the resolution are not in the list. Thus use e.g.
|
||||
|
||||
if RatbagdResolution.CAP_SEPARATE_XY_RESOLUTION is in resolution.capabilities:
|
||||
do something
|
||||
"""
|
||||
return self._get_dbus_property("Capabilities") or []
|
||||
|
||||
@GObject.Property
|
||||
def resolution(self):
|
||||
"""The resolution in DPI, either as single value tuple ``(res, )``
|
||||
|
||||
Reference in New Issue
Block a user