aboutsummaryrefslogtreecommitdiff
path: root/client/src/ui/manage_accounts/dialog.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-03-09 14:27:39 +0100
committerfiaxh <git@mx.ax.lt>2017-03-09 14:27:39 +0100
commitb1e6e51c4f79f57f0a01b183ef185408fb22cc36 (patch)
treee7b7a3a85169abbed3852b93ee6d7a90a0e17039 /client/src/ui/manage_accounts/dialog.vala
parent811e252de19c2a8735c24b05c7ebae9328168096 (diff)
downloaddino-b1e6e51c4f79f57f0a01b183ef185408fb22cc36.tar.gz
dino-b1e6e51c4f79f57f0a01b183ef185408fb22cc36.zip
Fix MUC join w/o bookmark, with psw; change some event listeners key_press->key_release
fixes #3
Diffstat (limited to 'client/src/ui/manage_accounts/dialog.vala')
-rw-r--r--client/src/ui/manage_accounts/dialog.vala20
1 files changed, 10 insertions, 10 deletions
diff --git a/client/src/ui/manage_accounts/dialog.vala b/client/src/ui/manage_accounts/dialog.vala
index d3695019..4f3ade45 100644
--- a/client/src/ui/manage_accounts/dialog.vala
+++ b/client/src/ui/manage_accounts/dialog.vala
@@ -69,8 +69,8 @@ public class Dialog : Gtk.Window {
add_button.clicked.connect(add_button_clicked);
no_accounts_add.clicked.connect(add_button_clicked);
remove_button.clicked.connect(remove_button_clicked);
- password_entry.key_press_event.connect(on_password_entry_key_press_event);
- alias_entry.key_press_event.connect(on_alias_entry_key_press_event);
+ password_entry.key_release_event.connect(on_password_key_release_event);
+ alias_entry.key_release_event.connect(on_alias_key_release_event);
image_button.clicked.connect(on_image_button_clicked);
main_stack.set_visible_child_name("no_accounts");
@@ -188,23 +188,23 @@ public class Dialog : Gtk.Window {
return false;
}
- private bool on_password_entry_key_press_event(EventKey event) {
+ private bool on_password_key_release_event(EventKey event) {
Account account = (account_list.get_selected_row() as AccountRow).account;
+ account.password = password_entry.text;
+ string filler = "";
+ for (int i = 0; i < account.password.length; i++) filler += password_entry.get_invisible_char().to_string();
+ password_label.label = filler;
if (event.keyval == Key.Return) {
- account.password = password_entry.text;
- string filler = "";
- for (int i = 0; i < account.password.length; i++) filler += password_entry.get_invisible_char().to_string();
- password_label.label = filler;
password_stack.set_visible_child_name("label");
}
return false;
}
- private bool on_alias_entry_key_press_event(EventKey event) {
+ private bool on_alias_key_release_event(EventKey event) {
Account account = (account_list.get_selected_row() as AccountRow).account;
+ account.alias = alias_entry.text;
+ alias_label.label = alias_entry.text;
if (event.keyval == Key.Return) {
- account.alias = alias_entry.text;
- alias_label.label = alias_entry.text;
alias_stack.set_visible_child_name("label");
}
return false;