From c7fe771082572b1c06a84de436618bc4bcc8a2e8 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 16 Jul 2019 11:04:46 +1000 Subject: [PATCH] Set the battery percent as tooltip on the battery image --- tuhigui/drawingperspective.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tuhigui/drawingperspective.py b/tuhigui/drawingperspective.py index 178f986..8530b87 100644 --- a/tuhigui/drawingperspective.py +++ b/tuhigui/drawingperspective.py @@ -117,6 +117,7 @@ class DrawingPerspective(Gtk.Stack): batt_icon_name = f'battery-{percent}{state}-symbolic' _, isize = self.image_battery.get_icon_name() self.image_battery.set_from_icon_name(batt_icon_name, isize) + self.image_battery.set_tooltip_text(f'{device.battery_percent}%') def _on_sync_state(self, device, pspec): if device.sync_state: