window: Use closures for view button tooltip text

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/592>
This commit is contained in:
Jamie Gravendeel
2025-07-08 15:31:06 +00:00
committed by Marge Bot
parent 684ed71711
commit 7eb65ded71
2 changed files with 32 additions and 33 deletions
+2
View File
@@ -252,12 +252,14 @@ template $GcalWindow: Adw.ApplicationWindow {
[start]
Button previous_date_button {
icon-name: bind $get_previous_date_icon(views_stack.visible-child) as <string>;
tooltip-text: bind $get_previous_date_tooltip(views_stack.visible-child-name) as <string>;
action-name: "win.previous-date";
}
[start]
Button next_date_button {
icon-name: bind $get_next_date_icon(views_stack.visible-child) as <string>;
tooltip-text: bind $get_next_date_tooltip(views_stack.visible-child-name) as <string>;
action-name: "win.next-date";
}