anotherim-desktop/main/src/ui/manage_accounts/account_row.vala

22 lines
606 B
Vala
Raw Normal View History

2017-03-02 14:37:32 +00:00
using Gtk;
using Dino.Entities;
namespace Dino.Ui.ManageAccounts {
[GtkTemplate (ui = "/org/dino-im/manage_accounts/account_row.ui")]
public class AccountRow : Gtk.ListBoxRow {
2017-03-10 17:07:28 +00:00
[GtkChild] public Image image;
[GtkChild] public Label jid_label;
2017-03-02 14:37:32 +00:00
public Account account;
public AccountRow(StreamInteractor stream_interactor, Account account) {
this.account = account;
Util.image_set_from_scaled_pixbuf(image, (new AvatarGenerator(40, 40, image.scale_factor)).draw_account(stream_interactor, account));
jid_label.set_label(account.bare_jid.to_string());
}
}
2017-03-10 17:07:28 +00:00
2017-03-02 14:37:32 +00:00
}