window: Use closures for view button icons

Fixes #1405

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/591>
This commit is contained in:
Jamie Gravendeel
2025-06-10 13:16:34 +02:00
parent 33d87c3511
commit c59965670d
2 changed files with 30 additions and 14 deletions
+2 -2
View File
@@ -251,13 +251,13 @@ template $GcalWindow: Adw.ApplicationWindow {
ActionBar {
[start]
Button previous_date_button {
icon-name: "go-previous-symbolic";
icon-name: bind $get_previous_date_icon(views_stack.visible-child) as <string>;
action-name: "win.previous-date";
}
[start]
Button next_date_button {
icon-name: "go-next-symbolic";
icon-name: bind $get_next_date_icon(views_stack.visible-child) as <string>;
action-name: "win.next-date";
}