From f73c3ad35b5d9ce07302a6bdbd4c2a63d9644fa2 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 27 Jul 2017 21:24:10 +1000 Subject: [PATCH] Revert "Window: draw 'Switch resolution' label" This reverts commit ae64c5eebada9485b8ac509b31c5103bd48a3f3a. --- piper/window.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/piper/window.py b/piper/window.py index 73068df..8da3cef 100644 --- a/piper/window.py +++ b/piper/window.py @@ -14,8 +14,6 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -from gettext import gettext as _ - from .gi_composites import GtkTemplate from .mousemap import MouseMap from .ratbagd import RatbagErrorCode @@ -56,13 +54,8 @@ class Window(Gtk.ApplicationWindow): self._setup_resolutions_page() def _setup_resolutions_page(self): - profile = self._device.active_profile - - mousemap = MouseMap("#Buttons", self._device, spacing=20, border_width=20) - for button in profile.buttons: - if button.action_type == "special" and button.special == "resolution-default": - label = Gtk.Label(_("Switch resolution")) - mousemap.add(label, "#button{}".format(button.index)) + # TODO: mousemap needs to show which button switches resolution + mousemap = MouseMap("#Device", self._device, spacing=20, border_width=20) self.rate_500.connect("toggled", self._on_report_rate_toggled, 500) self.rate_500.set_active(profile.active_resolution.report_rate == 500)