diff options
author | Marvin W <git@larma.de> | 2023-08-24 20:18:26 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2023-09-24 19:51:33 +0200 |
commit | 9eafe4139d6b2c0cabe3c77a903d6ae931a26975 (patch) | |
tree | 7a1fa0a2a5fc25b9b8dfe2688a9f622fbd742d70 /main/src/ui/widgets/avatar_picture.vala | |
parent | 2fba24ccae13e832bd38ff9c7fea71c1a802603d (diff) | |
download | dino-9eafe4139d6b2c0cabe3c77a903d6ae931a26975.tar.gz dino-9eafe4139d6b2c0cabe3c77a903d6ae931a26975.zip |
Fix build on some Vala compiler versions
See https://gitlab.gnome.org/GNOME/vala/-/issues/1474 and https://gitlab.gnome.org/GNOME/vala/-/issues/1478
Diffstat (limited to 'main/src/ui/widgets/avatar_picture.vala')
-rw-r--r-- | main/src/ui/widgets/avatar_picture.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ui/widgets/avatar_picture.vala b/main/src/ui/widgets/avatar_picture.vala index e632413c..fb254915 100644 --- a/main/src/ui/widgets/avatar_picture.vala +++ b/main/src/ui/widgets/avatar_picture.vala @@ -454,7 +454,7 @@ public class Dino.Ui.AvatarPicture : Gtk.Widget { label.insert_after(this, null); label.attributes = new Pango.AttrList(); label.attributes.insert(Pango.attr_foreground_new(uint16.MAX, uint16.MAX, uint16.MAX)); -#if GTK_4_8 && VALA_0_58 +#if GTK_4_8 && (VALA_0_56_GREATER_5 || VALA_0_58) picture.content_fit = Gtk.ContentFit.COVER; #elif GTK_4_8 picture.@set("content-fit", 2); @@ -516,4 +516,4 @@ public class Dino.Ui.AvatarPicture : Gtk.Widget { base.snapshot(snapshot); } } -}
\ No newline at end of file +} |