From ecc664bcaf5070b4158286d2c593fd7714048a6f Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Tue, 8 Apr 2025 00:15:34 -0400 Subject: [PATCH] use bindings --- widget/Tray.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/widget/Tray.tsx b/widget/Tray.tsx index 7e6a867..7eba887 100644 --- a/widget/Tray.tsx +++ b/widget/Tray.tsx @@ -1,5 +1,5 @@ import { bind } from "astal"; -import { Gdk, Gtk } from "astal/gtk4"; +import { Gdk } from "astal/gtk4"; import AstalTray from "gi://AstalTray"; const Tray = function () { @@ -7,10 +7,6 @@ const Tray = function () { const trayItems = bind(tray, "items"); - function OpenTrayItem(button: Gtk.MenuButton, item: AstalTray.TrayItem) { - item.about_to_show(); - } - return ( {trayItems.as((items) => @@ -18,8 +14,10 @@ const Tray = function () { return ( iconName || "NONE", + )} /> );