diff options
Diffstat (limited to 'libdino/src/ui/manage_accounts')
-rw-r--r-- | libdino/src/ui/manage_accounts/account_row.vala | 8 | ||||
-rw-r--r-- | libdino/src/ui/manage_accounts/add_account_dialog.vala | 20 | ||||
-rw-r--r-- | libdino/src/ui/manage_accounts/dialog.vala | 4 |
3 files changed, 13 insertions, 19 deletions
diff --git a/libdino/src/ui/manage_accounts/account_row.vala b/libdino/src/ui/manage_accounts/account_row.vala index 6ca4daf6..5e4570f0 100644 --- a/libdino/src/ui/manage_accounts/account_row.vala +++ b/libdino/src/ui/manage_accounts/account_row.vala @@ -7,11 +7,8 @@ namespace Dino.Ui.ManageAccounts { [GtkTemplate (ui = "/org/dino-im/manage_accounts/account_row.ui")] public class AccountRow : Gtk.ListBoxRow { - [GtkChild] - public Image image; - - [GtkChild] - public Label jid_label; + [GtkChild] public Image image; + [GtkChild] public Label jid_label; public Account account; @@ -21,4 +18,5 @@ public class AccountRow : Gtk.ListBoxRow { jid_label.set_label(account.bare_jid.to_string()); } } + }
\ No newline at end of file diff --git a/libdino/src/ui/manage_accounts/add_account_dialog.vala b/libdino/src/ui/manage_accounts/add_account_dialog.vala index b22fca3a..f6ad40a2 100644 --- a/libdino/src/ui/manage_accounts/add_account_dialog.vala +++ b/libdino/src/ui/manage_accounts/add_account_dialog.vala @@ -10,20 +10,11 @@ public class AddAccountDialog : Gtk.Dialog { public signal void added(Account account); - [GtkChild] - private Button cancel_button; - - [GtkChild] - private Button ok_button; - - [GtkChild] - private Entry alias_entry; - - [GtkChild] - private Entry jid_entry; - - [GtkChild] - private Entry password_entry; + [GtkChild] private Button cancel_button; + [GtkChild] private Button ok_button; + [GtkChild] private Entry alias_entry; + [GtkChild] private Entry jid_entry; + [GtkChild] private Entry password_entry; public AddAccountDialog(StreamInteractor stream_interactor) { Object(use_header_bar : 1); @@ -67,4 +58,5 @@ public class AddAccountDialog : Gtk.Dialog { close(); } } + } diff --git a/libdino/src/ui/manage_accounts/dialog.vala b/libdino/src/ui/manage_accounts/dialog.vala index 5d18cb30..8f5fb7d1 100644 --- a/libdino/src/ui/manage_accounts/dialog.vala +++ b/libdino/src/ui/manage_accounts/dialog.vala @@ -20,14 +20,17 @@ public class Dialog : Gtk.Window { [GtkChild] public Button image_button; [GtkChild] public Label jid_label; [GtkChild] public Switch active_switch; + [GtkChild] public Stack password_stack; [GtkChild] public Label password_label; [GtkChild] public Button password_button; [GtkChild] public Entry password_entry; + [GtkChild] public Stack alias_stack; [GtkChild] public Label alias_label; [GtkChild] public Button alias_button; [GtkChild] public Entry alias_entry; + [GtkChild] public Stack pgp_stack; [GtkChild] public Label pgp_label; [GtkChild] public Button pgp_button; @@ -189,5 +192,6 @@ public class Dialog : Gtk.Window { if (stack != pgp_stack) pgp_stack.set_visible_child_name("label"); } } + } |