aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2019-12-23 17:29:35 +0100
committerMarvin W <git@larma.de>2019-12-23 17:29:35 +0100
commit4185da3b99cfdfba331a2cc0b6bdbd1bed63845e (patch)
tree1aeb345028b2ce6baa382a5b92b0773ce471db1e /main/src/ui
parent53d467938cb1d3fb73bab3707319bc740eda9b10 (diff)
downloaddino-4185da3b99cfdfba331a2cc0b6bdbd1bed63845e.tar.gz
dino-4185da3b99cfdfba331a2cc0b6bdbd1bed63845e.zip
Fix small focus bugs in account wizard
Diffstat (limited to 'main/src/ui')
-rw-r--r--main/src/ui/manage_accounts/add_account_dialog.vala8
1 files changed, 5 insertions, 3 deletions
diff --git a/main/src/ui/manage_accounts/add_account_dialog.vala b/main/src/ui/manage_accounts/add_account_dialog.vala
index b1727c5d..ab9c0a05 100644
--- a/main/src/ui/manage_accounts/add_account_dialog.vala
+++ b/main/src/ui/manage_accounts/add_account_dialog.vala
@@ -127,6 +127,7 @@ public class AddAccountDialog : Gtk.Dialog {
private void show_sign_in_jid() {
sign_in_jid_box.visible = true;
+ jid_entry.grab_focus();
stack.visible_child_name = "login_jid";
sign_in_tls_box.visible = false;
sign_in_password_box.visible = false;
@@ -152,6 +153,7 @@ public class AddAccountDialog : Gtk.Dialog {
private void show_sign_in_password() {
sign_in_password_box.visible = true;
+ password_entry.grab_focus();
stack.visible_child_name = "login_password";
sign_in_jid_box.visible = false;
sign_in_tls_box.visible = false;
@@ -170,9 +172,9 @@ public class AddAccountDialog : Gtk.Dialog {
server_entry.grab_focus();
set_default(select_server_continue);
- server_list_box.row_selected.disconnect(on_server_list_row_selected);
+ server_list_box.row_activated.disconnect(on_server_list_row_activated);
server_list_box.unselect_all();
- server_list_box.row_selected.connect(on_server_list_row_selected);
+ server_list_box.row_activated.connect(on_server_list_row_activated);
create_account_box.visible = true;
stack.visible_child_name = "server";
@@ -295,7 +297,7 @@ public class AddAccountDialog : Gtk.Dialog {
}
}
- private void on_server_list_row_selected(ListBox box, ListBoxRow? row) {
+ private void on_server_list_row_activated(ListBox box, ListBoxRow row) {
try {
server_jid = new Jid(list_box_jids[row]);
request_show_register_form.begin();