summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2024-12-21 00:46:34 +0100
committerGitHub <[email protected]>2024-12-21 00:46:34 +0100
commitdafb191661d88c3182b6571461df56687ec90cdd (patch)
tree58bbf1f3018feea055ac84b44a1a27387465c548 /examples
parentd7d11b341db85ce9768fa06b6f225d713621ec56 (diff)
astal3 icon: use Gtk Image's GIcon (#187)
Diffstat (limited to 'examples')
-rw-r--r--examples/js/simple-bar/widget/Bar.tsx4
-rw-r--r--examples/lua/simple-bar/widget/Bar.lua4
-rw-r--r--examples/py/simple-bar/widget/Bar.py2
-rw-r--r--examples/vala/simple-bar/widget/Bar.vala2
4 files changed, 6 insertions, 6 deletions
diff --git a/examples/js/simple-bar/widget/Bar.tsx b/examples/js/simple-bar/widget/Bar.tsx
index 54a14b0..c109aec 100644
--- a/examples/js/simple-bar/widget/Bar.tsx
+++ b/examples/js/simple-bar/widget/Bar.tsx
@@ -18,9 +18,9 @@ function SysTray() {
usePopover={false}
actionGroup={bind(item, "action-group").as(ag => ["dbusmenu", ag])}
menuModel={bind(item, "menu-model")}>
- <icon gIcon={bind(item, "gicon")} />
+ <icon gicon={bind(item, "gicon")} />
</menubutton>
- ))}
+ )))}
</box>
}
diff --git a/examples/lua/simple-bar/widget/Bar.lua b/examples/lua/simple-bar/widget/Bar.lua
index 5e62253..e0d8b20 100644
--- a/examples/lua/simple-bar/widget/Bar.lua
+++ b/examples/lua/simple-bar/widget/Bar.lua
@@ -26,7 +26,7 @@ local function SysTray()
return { "dbusmenu", ag }
end),
Widget.Icon({
- g_icon = bind(item, "gicon"),
+ gicon = bind(item, "gicon"),
}),
})
end)
@@ -127,7 +127,7 @@ local function Workspaces()
end)
return map(wss, function(ws)
- if !(ws.id >= -99 and ws.id <= -2) then -- filter out special workspaces
+ if not (ws.id >= -99 and ws.id <= -2) then -- filter out special workspaces
return Widget.Button({
class_name = bind(hypr, "focused-workspace"):as(function(fw)
return fw == ws and "focused" or ""
diff --git a/examples/py/simple-bar/widget/Bar.py b/examples/py/simple-bar/widget/Bar.py
index 3c5c3f8..c6902b4 100644
--- a/examples/py/simple-bar/widget/Bar.py
+++ b/examples/py/simple-bar/widget/Bar.py
@@ -124,7 +124,7 @@ class SysTray(Gtk.Box):
icon = Astal.Icon(visible=True)
item.bind_property("tooltip-markup", btn, "tooltip-markup", SYNC)
- item.bind_property("gicon", icon, "g-icon", SYNC)
+ item.bind_property("gicon", icon, "gicon", SYNC)
item.bind_property("menu-model", btn, "menu-model", SYNC)
btn.insert_action_group("dbusmenu", item.get_action_group())
diff --git a/examples/vala/simple-bar/widget/Bar.vala b/examples/vala/simple-bar/widget/Bar.vala
index 8913c95..295a3b7 100644
--- a/examples/vala/simple-bar/widget/Bar.vala
+++ b/examples/vala/simple-bar/widget/Bar.vala
@@ -121,7 +121,7 @@ class SysTray : Gtk.Box {
var icon = new Astal.Icon() { visible = true };
item.bind_property("tooltip-markup", btn, "tooltip-markup", BindingFlags.SYNC_CREATE);
- item.bind_property("gicon", icon, "g-icon", BindingFlags.SYNC_CREATE);
+ item.bind_property("gicon", icon, "gicon", BindingFlags.SYNC_CREATE);
item.bind_property("menu-model", btn, "menu-model", BindingFlags.SYNC_CREATE);
btn.insert_action_group("dbusmenu", item.action_group);
item.notify["action-group"].connect(() => {