From 6686c4dca7d511e6d8062a788f11947a1c6b2c53 Mon Sep 17 00:00:00 2001 From: kotontrion Date: Sun, 8 Sep 2024 11:19:09 +0200 Subject: example: use gicon for tray --- examples/js/simple-bar/widget/Bar.tsx | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'examples/js') diff --git a/examples/js/simple-bar/widget/Bar.tsx b/examples/js/simple-bar/widget/Bar.tsx index d1bf2ec..d669fd5 100644 --- a/examples/js/simple-bar/widget/Bar.tsx +++ b/examples/js/simple-bar/widget/Bar.tsx @@ -22,20 +22,7 @@ function SysTray() { onClickRelease={self => { menu?.popup_at_widget(self, Gdk.Gravity.SOUTH, Gdk.Gravity.NORTH, null) }}> - { - if (item.iconName) self.icon = item.iconName - if (item.iconPixbuf) self.pixbuf = item.iconPixbuf - - self.hook(item, "notify::icon-name", () => { - self.icon = item.iconName - }) - - self.hook(item, "notify::icon-pixbuf", () => { - self.pixbuf = item.iconPixbuf - }) - }} - /> + }))} -- cgit v1.2.3