gui/blueprint: Drop unneeded casts to built-ins
Blueprint can now "infer" the type a closure returns, as long as it is not the property of a custom GType, so some of the casts (e.g. `as <string>`) will not be necessary anymore Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/733>
This commit is contained in:
@@ -266,15 +266,15 @@ template $GcalWindow: Adw.ApplicationWindow {
|
||||
ActionBar {
|
||||
[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>;
|
||||
icon-name: bind $get_previous_date_icon(views_stack.visible-child);
|
||||
tooltip-text: bind $get_previous_date_tooltip(views_stack.visible-child-name);
|
||||
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>;
|
||||
icon-name: bind $get_next_date_icon(views_stack.visible-child);
|
||||
tooltip-text: bind $get_next_date_tooltip(views_stack.visible-child-name);
|
||||
action-name: "win.next-date";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user