From 8c954390a3ccc380e57403531fa9756b6cb6827d Mon Sep 17 00:00:00 2001 From: piotr Date: Thu, 12 Dec 2024 02:36:36 +0100 Subject: [PATCH] controls labels -> set name property --- nwg_panel/modules/controls.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nwg_panel/modules/controls.py b/nwg_panel/modules/controls.py index eb1c99a..10b9737 100644 --- a/nwg_panel/modules/controls.py +++ b/nwg_panel/modules/controls.py @@ -55,17 +55,23 @@ def __init__(self, settings, position, alignment, width, monitor=None, icons_pat self.bri_icon_name = "view-refresh-symbolic" self.bri_image = Gtk.Image.new_from_icon_name(self.bri_icon_name, Gtk.IconSize.MENU) self.bri_label = Gtk.Label() if settings["show-brightness"] else None + if self.bri_label: + self.bri_label.set_property("name", "executor-label") self.bri_value = 0 self.vol_icon_name = "view-refresh-symbolic" self.vol_image = Gtk.Image.new_from_icon_name(self.vol_icon_name, Gtk.IconSize.MENU) self.vol_label = Gtk.Label() if settings["show-volume"] else None + if self.vol_label: + self.vol_label.set_property("name", "executor-label") self.vol_value = 0 self.vol_muted = False self.bat_icon_name = "view-refresh-symbolic" self.bat_image = Gtk.Image.new_from_icon_name(self.bat_icon_name, Gtk.IconSize.MENU) self.bat_label = Gtk.Label() if settings["show-battery"] else None + if self.bat_label: + self.bat_label.set_property("name", "executor-label") self.bat_value = 0 self.bat_time = "" self.bat_charging = False