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:
@@ -132,12 +132,12 @@ Popover popover {
|
||||
ellipsize: end;
|
||||
xalign: 0.0;
|
||||
max-width-chars: 40;
|
||||
label: bind $escape_markup_cb(template.item as <$GcalSearchHit>.title) as <string>;
|
||||
label: bind $escape_markup_cb(template.item as <$GcalSearchHit>.title);
|
||||
}
|
||||
|
||||
Label separator {
|
||||
label: "—";
|
||||
visible: bind $string_is_not_empty_cb(template.item as <$GcalSearchHit>.subtitle) as <bool>;
|
||||
visible: bind $string_is_not_empty_cb(template.item as <$GcalSearchHit>.subtitle);
|
||||
|
||||
styles [
|
||||
"dimmed",
|
||||
@@ -149,7 +149,7 @@ Popover popover {
|
||||
use-markup: true;
|
||||
ellipsize: end;
|
||||
xalign: 0.0;
|
||||
label: bind $escape_markup_cb(template.item as <$GcalSearchHit>.subtitle) as <string>;
|
||||
label: bind $escape_markup_cb(template.item as <$GcalSearchHit>.subtitle);
|
||||
|
||||
styles [
|
||||
"subtitle",
|
||||
|
||||
Reference in New Issue
Block a user