aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/call_window
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2023-01-24 18:59:46 +0100
committerMarvin W <git@larma.de>2023-03-05 16:47:46 +0100
commitdb3b0d5f233ee3587ae54f8f035222cb098b11dd (patch)
tree587e5b21a92c8482b25338556d3ef98c764c8ebb /main/src/ui/call_window
parentd81829652057d63b9971b9217996438ee41788ca (diff)
downloaddino-db3b0d5f233ee3587ae54f8f035222cb098b11dd.tar.gz
dino-db3b0d5f233ee3587ae54f8f035222cb098b11dd.zip
New Avatar UI
Diffstat (limited to 'main/src/ui/call_window')
-rw-r--r--main/src/ui/call_window/participant_widget.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/ui/call_window/participant_widget.vala b/main/src/ui/call_window/participant_widget.vala
index 180923f1..8ec1f5ea 100644
--- a/main/src/ui/call_window/participant_widget.vala
+++ b/main/src/ui/call_window/participant_widget.vala
@@ -96,11 +96,11 @@ namespace Dino.Ui {
shows_video = false;
Box box = new Box(Orientation.HORIZONTAL, 0);
box.add_css_class("video-placeholder-box");
- AvatarImage avatar = new AvatarImage() { allow_gray=false, hexpand=true, vexpand=true, halign=Align.CENTER, valign=Align.CENTER, height=100, width=100 };
+ AvatarPicture avatar = new AvatarPicture() { hexpand=true, vexpand=true, halign=Align.CENTER, valign=Align.CENTER, height_request=100, width_request=100 };
if (conversation != null) {
- avatar.set_conversation(stream_interactor, conversation);
+ avatar.model = new ViewModel.CompatAvatarPictureModel(stream_interactor).set_conversation(conversation);
} else {
- avatar.set_text("?", false);
+ avatar.model = new ViewModel.CompatAvatarPictureModel(stream_interactor).add("?");
}
box.append(avatar);