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:
committed by
Marge Bot
parent
684ed71711
commit
7eb65ded71
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user