roundabout,
created on Saturday, 26 July 2025, 11:39:11 (1753529951),
received on Saturday, 26 July 2025, 13:49:48 (1753537788)
Author identity: vlad <vlad.muntoiu@gmail.com>
4ea2d397cf4dba65c52c2919d60107e6324aaf5f
applets/wf-window-list/__init__.py
@@ -91,7 +91,7 @@ class WFWindowList(panorama_panel.Applet):
handle.dispatcher["title"] = lambda h, title: self.on_title_changed(h, title) #handle.dispatcher["app_id"] = lambda h, app_id: self.on_app_id_changed(h, app_id) #handle.dispatcher["state"] = lambda h, states: self.on_state_changed(h, states) #handle.dispatcher["closed"] = lambda h: self.on_closed(h)handle.dispatcher["closed"] = lambda h: self.on_closed(h)def on_title_changed(self, handle, title): print(f"Window title: {title}")
@@ -102,6 +102,11 @@ class WFWindowList(panorama_panel.Applet):
self.toplevel_buttons[handle] = button self.append(button) def on_closed(self, handle): if handle in self.toplevel_buttons: self.remove(self.toplevel_buttons[handle]) self.toplevel_buttons.pop(handle) def make_context_menu(self): menu = Gio.Menu() menu.append("Window list _options", "applet.options")