1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 22:32:37 +01:00
Files
sunny-overlay/app-misc/piper/files/piper-0.2.900-resolutionrow-use-new-ratbagdresolution-api.patch

29 lines
998 B
Diff

From 87dc9f427a9376915f30231459fb76c84d57b973 Mon Sep 17 00:00:00 2001
From: Jente Hidskes <hjdskes@gmail.com>
Date: Sun, 15 Oct 2017 12:33:47 +0200
Subject: [PATCH 20/30] ResolutionRow: use new RatbagdResolution API
The API was changed in https://github.com/libratbag/libratbag/pull/393.
---
piper/resolutionrow.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/piper/resolutionrow.py b/piper/resolutionrow.py
index 8cba448..108af45 100644
--- a/piper/resolutionrow.py
+++ b/piper/resolutionrow.py
@@ -60,8 +60,8 @@ class ResolutionRow(Gtk.ListBoxRow):
self._on_is_active_changed)
xres, __ = resolution.resolution
- minres = resolution.minimum
- maxres = resolution.maximum
+ minres = resolution.resolutions[0]
+ maxres = resolution.resolutions[-1]
self.dpi_label.set_text("{} DPI".format(xres))
self.active_label.set_visible(resolution.is_active)
--
2.16.1