aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/manage_accounts/account_row.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2024-09-15 20:38:00 +0200
committerfiaxh <git@lightrise.org>2024-09-15 21:01:24 +0200
commit228640a881aead53d307775cc2d3726fe64f3fc2 (patch)
treeec77540ec9b1fbc0a84beabccf3b1d866c1f7aa0 /main/src/ui/manage_accounts/account_row.vala
parente8f82fd328697542d2ee0233635b694827a5cc79 (diff)
downloaddino-228640a881aead53d307775cc2d3726fe64f3fc2.tar.gz
dino-228640a881aead53d307775cc2d3726fe64f3fc2.zip
Code cleanup: Remove remnants of previous accounts dialog
Diffstat (limited to 'main/src/ui/manage_accounts/account_row.vala')
-rw-r--r--main/src/ui/manage_accounts/account_row.vala41
1 files changed, 0 insertions, 41 deletions
diff --git a/main/src/ui/manage_accounts/account_row.vala b/main/src/ui/manage_accounts/account_row.vala
deleted file mode 100644
index ae734b83..00000000
--- a/main/src/ui/manage_accounts/account_row.vala
+++ /dev/null
@@ -1,41 +0,0 @@
-using Gtk;
-
-using Dino.Entities;
-
-namespace Dino.Ui.ManageAccounts {
-
-[GtkTemplate (ui = "/im/dino/Dino/manage_accounts/account_row.ui")]
-public class AccountRow : Gtk.ListBoxRow {
-
- [GtkChild] public unowned AvatarPicture picture;
- [GtkChild] public unowned Label jid_label;
- [GtkChild] public unowned Image icon;
-
- public Account account;
- private StreamInteractor stream_interactor;
-
- public AccountRow(StreamInteractor stream_interactor, Account account) {
- this.stream_interactor = stream_interactor;
- this.account = account;
- picture.model = new ViewModel.CompatAvatarPictureModel(stream_interactor).add_participant(new Conversation(account.bare_jid, account, Conversation.Type.CHAT), account.bare_jid);
- jid_label.set_label(account.bare_jid.to_string());
-
- stream_interactor.connection_manager.connection_error.connect((account, error) => {
- if (account.equals(this.account)) {
- update_warning_icon();
- }
- });
- stream_interactor.connection_manager.connection_state_changed.connect((account, state) => {
- if (account.equals(this.account)) {
- update_warning_icon();
- }
- });
- }
-
- private void update_warning_icon() {
- ConnectionManager.ConnectionError? error = stream_interactor.connection_manager.get_error(account);
- icon.visible = (error != null);
- }
-}
-
-}