From bdb88865f08799067700a17d6b68423c4a6fea06 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 11 Jul 2019 21:15:30 +1000 Subject: [PATCH] Drop the device name from the drawing perspective We have it in the titlebar now, no further need for it --- data/ui/DrawingPerspective.ui | 17 ----------------- tuhigui/drawingperspective.py | 2 -- 2 files changed, 19 deletions(-) diff --git a/data/ui/DrawingPerspective.ui b/data/ui/DrawingPerspective.ui index c7943d4..be67857 100644 --- a/data/ui/DrawingPerspective.ui +++ b/data/ui/DrawingPerspective.ui @@ -15,23 +15,6 @@ True False - - - True - False - 20 - 20 - device name - - - - - - False - False - 0 - - True diff --git a/tuhigui/drawingperspective.py b/tuhigui/drawingperspective.py index 86fb42b..7488939 100644 --- a/tuhigui/drawingperspective.py +++ b/tuhigui/drawingperspective.py @@ -28,7 +28,6 @@ logger = logging.getLogger('drawingperspective') class DrawingPerspective(Gtk.Stack): __gtype_name__ = "DrawingPerspective" - label_devicename = Gtk.Template.Child() image_battery = Gtk.Template.Child() flowbox_drawings = Gtk.Template.Child() @@ -54,7 +53,6 @@ class DrawingPerspective(Gtk.Stack): @device.setter def device(self, device): self._device = device - self.label_devicename.set_text(f'{device.name} - {device.address}') device.connect('notify::connected', self._on_connected) device.connect('notify::listening', self._on_listening_stopped)