aboutsummaryrefslogtreecommitdiff
path: root/client/src/ui/manage_accounts
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-03-10 18:07:28 +0100
committerfiaxh <git@mx.ax.lt>2017-03-10 18:07:28 +0100
commit4c48c5c16d5f5b010c2e5dfb1affcb59f937510c (patch)
treed4a75a005fcfa823b1716d8bfbe3d862f3680905 /client/src/ui/manage_accounts
parentcf51e1dee22273366700c41a185c4bea343dddfe (diff)
downloaddino-4c48c5c16d5f5b010c2e5dfb1affcb59f937510c.tar.gz
dino-4c48c5c16d5f5b010c2e5dfb1affcb59f937510c.zip
Reformat [GtkChild]
Diffstat (limited to 'client/src/ui/manage_accounts')
-rw-r--r--client/src/ui/manage_accounts/account_row.vala8
-rw-r--r--client/src/ui/manage_accounts/add_account_dialog.vala20
-rw-r--r--client/src/ui/manage_accounts/dialog.vala4
3 files changed, 13 insertions, 19 deletions
diff --git a/client/src/ui/manage_accounts/account_row.vala b/client/src/ui/manage_accounts/account_row.vala
index 6ca4daf6..5e4570f0 100644
--- a/client/src/ui/manage_accounts/account_row.vala
+++ b/client/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/client/src/ui/manage_accounts/add_account_dialog.vala b/client/src/ui/manage_accounts/add_account_dialog.vala
index b22fca3a..f6ad40a2 100644
--- a/client/src/ui/manage_accounts/add_account_dialog.vala
+++ b/client/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/client/src/ui/manage_accounts/dialog.vala b/client/src/ui/manage_accounts/dialog.vala
index 5d18cb30..8f5fb7d1 100644
--- a/client/src/ui/manage_accounts/dialog.vala
+++ b/client/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");
}
}
+
}