diff options
author | Marvin W <git@larma.de> | 2023-01-24 18:59:46 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2023-03-05 16:47:46 +0100 |
commit | db3b0d5f233ee3587ae54f8f035222cb098b11dd (patch) | |
tree | 587e5b21a92c8482b25338556d3ef98c764c8ebb /main/src/ui/contact_details | |
parent | d81829652057d63b9971b9217996438ee41788ca (diff) | |
download | dino-db3b0d5f233ee3587ae54f8f035222cb098b11dd.tar.gz dino-db3b0d5f233ee3587ae54f8f035222cb098b11dd.zip |
New Avatar UI
Diffstat (limited to 'main/src/ui/contact_details')
-rw-r--r-- | main/src/ui/contact_details/dialog.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ui/contact_details/dialog.vala b/main/src/ui/contact_details/dialog.vala index 134bb559..c897fe4e 100644 --- a/main/src/ui/contact_details/dialog.vala +++ b/main/src/ui/contact_details/dialog.vala @@ -10,7 +10,7 @@ namespace Dino.Ui.ContactDetails { [GtkTemplate (ui = "/im/dino/Dino/contact_details_dialog.ui")] public class Dialog : Gtk.Dialog { - [GtkChild] public unowned AvatarImage avatar; + [GtkChild] public unowned AvatarPicture avatar; [GtkChild] public unowned Util.EntryLabelHybrid name_hybrid; [GtkChild] public unowned Label name_label; [GtkChild] public unowned Label jid_label; @@ -87,7 +87,7 @@ public class Dialog : Gtk.Dialog { } jid_label.label = conversation.counterpart.to_string(); account_label.label = "via " + conversation.account.bare_jid.to_string(); - avatar.set_conversation(stream_interactor, conversation); + avatar.model = new ViewModel.CompatAvatarPictureModel(stream_interactor).set_conversation(conversation); } private void add_entry(string category, string label, string? description, Object wo) { |