From d538d8e1b789f9c5fd673c9bc00eb18d4be6a6f3 Mon Sep 17 00:00:00 2001 From: Aylur Date: Thu, 14 Nov 2024 00:09:41 +0000 Subject: update example readme there is no audio library, its wireplumber --- examples/vala/simple-bar/README.md | 1 - 1 file changed, 1 deletion(-) (limited to 'examples/vala/simple-bar') diff --git a/examples/vala/simple-bar/README.md b/examples/vala/simple-bar/README.md index bcc6bba..48cc27c 100644 --- a/examples/vala/simple-bar/README.md +++ b/examples/vala/simple-bar/README.md @@ -4,7 +4,6 @@ A simple bar for Hyprland using -- [Audio library](https://aylur.github.io/astal/guide/libraries/audio). - [Battery library](https://aylur.github.io/astal/guide/libraries/battery). - [Hyprland library](https://aylur.github.io/astal/guide/libraries/hyprland). - [Mpris library](https://aylur.github.io/astal/guide/libraries/mpris). -- cgit v1.2.3 From 27bc3dd95fe752cbaf5c84aa1bca436c80ce0c15 Mon Sep 17 00:00:00 2001 From: kotontrion Date: Fri, 15 Nov 2024 09:04:03 +0100 Subject: examples (vala): fix tray --- examples/vala/simple-bar/widget/Bar.vala | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'examples/vala/simple-bar') diff --git a/examples/vala/simple-bar/widget/Bar.vala b/examples/vala/simple-bar/widget/Bar.vala index 17db831..ba4062c 100644 --- a/examples/vala/simple-bar/widget/Bar.vala +++ b/examples/vala/simple-bar/widget/Bar.vala @@ -113,9 +113,6 @@ class SysTray : Gtk.Box { var item = tray.get_item(id); - if (item.icon_theme_path != null) - App.instance.add_icons(item.icon_theme_path); - var menu = item.create_menu(); var btn = new Astal.Button(); var icon = new Astal.Icon(); @@ -131,8 +128,10 @@ class SysTray : Gtk.Box { }); item.bind_property("tooltip-markup", btn, "tooltip-markup", BindingFlags.SYNC_CREATE); - item.bind_property("gicon", icon, "gicon", BindingFlags.SYNC_CREATE); + item.bind_property("gicon", icon, "g-icon", BindingFlags.SYNC_CREATE); + btn.add(icon); add(btn); + btn.show_all(); items.set(id, btn); } -- cgit v1.2.3