From 2cd6e94cc567284a10c4545208f53ea8421ee8d1 Mon Sep 17 00:00:00 2001 From: hrxi Date: Wed, 23 Aug 2017 17:49:55 +0200 Subject: Focus selected widgets in the accounts dialog Previously, you had to issue two clicks in order to enter something into the text fields. This also replaces the `Entry` widgets with their label counterparts once they lose focus. Since the `ComboBox` handling of focus seems to be buggy (`focus_out_event` not firing), the OpenPGP key selection lacks the latter feature. --- plugins/openpgp/src/account_settings_widget.vala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/openpgp/src') diff --git a/plugins/openpgp/src/account_settings_widget.vala b/plugins/openpgp/src/account_settings_widget.vala index a7ea2887..e5f5aaf1 100644 --- a/plugins/openpgp/src/account_settings_widget.vala +++ b/plugins/openpgp/src/account_settings_widget.vala @@ -31,7 +31,7 @@ private class AccountSettingsWidget : Stack, Plugins.AccountSettingsWidget { } public void deactivate() { - this.set_visible_child_name("label"); + set_visible_child_name("label"); } public void set_account(Account account) { @@ -45,7 +45,8 @@ private class AccountSettingsWidget : Stack, Plugins.AccountSettingsWidget { private void on_button_clicked() { activated(); - this.set_visible_child_name("entry"); + set_visible_child_name("entry"); + combobox.grab_focus(); combobox.popup(); } -- cgit v1.2.3-54-g00ecf