aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/manage_accounts
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2022-10-08 14:49:42 +0200
committerfiaxh <git@lightrise.org>2022-10-09 11:48:58 +0200
commit03878eee495cac8dcc8baf0ff4f84e4c9e76114e (patch)
tree226fa2dd547afed3661b2d343608f2ee288ddd74 /main/src/ui/manage_accounts
parent85342ee2eb2aa3e6d7599c503d17c00d861bafcb (diff)
downloaddino-03878eee495cac8dcc8baf0ff4f84e4c9e76114e.tar.gz
dino-03878eee495cac8dcc8baf0ff4f84e4c9e76114e.zip
Add account dialog: Reenable Next-button activation on enter
Diffstat (limited to 'main/src/ui/manage_accounts')
-rw-r--r--main/src/ui/manage_accounts/add_account_dialog.vala12
1 files changed, 6 insertions, 6 deletions
diff --git a/main/src/ui/manage_accounts/add_account_dialog.vala b/main/src/ui/manage_accounts/add_account_dialog.vala
index daff3abf..d7bbe66b 100644
--- a/main/src/ui/manage_accounts/add_account_dialog.vala
+++ b/main/src/ui/manage_accounts/add_account_dialog.vala
@@ -134,7 +134,7 @@ public class AddAccountDialog : Gtk.Dialog {
create_account_box.visible = false;
register_box.visible = false;
success_box.visible = false;
-// set_default(sign_in_jid_continue_button);
+ set_default_widget(sign_in_jid_continue_button);
sign_in_jid_error_label.label = "";
jid_entry.sensitive = true;
@@ -174,7 +174,7 @@ public class AddAccountDialog : Gtk.Dialog {
create_account_box.visible = false;
register_box.visible = false;
success_box.visible = false;
-// set_default(sign_in_password_continue_button);
+ set_default_widget(sign_in_password_continue_button);
sign_in_password_error_label.label = "";
sign_in_password_title.label = _("Sign in to %s").printf(login_jid.to_string());
@@ -184,7 +184,7 @@ public class AddAccountDialog : Gtk.Dialog {
private void show_select_server() {
server_entry.text = "";
server_entry.grab_focus();
-// set_default(select_server_continue);
+ set_default_widget(select_server_continue);
server_list_box.row_activated.disconnect(on_server_list_row_activated);
server_list_box.unselect_all();
@@ -209,7 +209,7 @@ public class AddAccountDialog : Gtk.Dialog {
create_account_box.visible = false;
success_box.visible = false;
-// set_default(register_form_continue);
+ set_default_widget(register_form_continue);
animate_window_resize(register_box);
}
@@ -223,7 +223,7 @@ public class AddAccountDialog : Gtk.Dialog {
register_box.visible = false;
success_description.label = _("You can now use the account %s.").printf("<b>" + Markup.escape_text(account.bare_jid.to_string()) + "</b>");
-// set_default(success_continue_button);
+ set_default_widget(success_continue_button);
}
private void on_jid_entry_changed() {
@@ -334,7 +334,7 @@ public class AddAccountDialog : Gtk.Dialog {
form_box.remove(widget);
widget = form_box.get_first_child();
}
-// form_box.foreach((widget) => { form_box.remove(widget); });
+
register_title.label = _("Register on %s").printf(server.to_string());
if (form.oob != null) {