mirror of
https://github.com/dguglielmi/sunny-overlay.git
synced 2025-12-06 16:02:39 +01:00
app-misc/piper: add ebuild and patches
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user