[network-manager-applet/lr/wifi-dialog-fixes: 21/26] libnma/wifi-dialog: don't focus a hidden widget
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/lr/wifi-dialog-fixes: 21/26] libnma/wifi-dialog: don't focus a hidden widget
- Date: Mon, 26 Nov 2018 13:28:23 +0000 (UTC)
commit 5a57adc9dbc14a8e0db5e917cf55a30cfa00bb0f
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Wed Oct 24 17:20:07 2018 +0200
libnma/wifi-dialog: don't focus a hidden widget
It makes no sense and Gtk+ dislikes this:
(lt-wifi-dialog:791007): Gtk-CRITICAL **: 17:16:55.127: gtk_widget_event:
assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed
src/libnma/nma-wifi-dialog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libnma/nma-wifi-dialog.c b/src/libnma/nma-wifi-dialog.c
index b26e6bf0..51512257 100644
--- a/src/libnma/nma-wifi-dialog.c
+++ b/src/libnma/nma-wifi-dialog.c
@@ -1123,7 +1123,7 @@ internal_init (NMAWifiDialog *self,
gtk_widget_hide (widget);
}
- if (security_combo_focus)
+ if (security_combo_focus && !secrets_only)
gtk_widget_grab_focus (priv->sec_combo);
else if (priv->network_name_focus) {
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "network_name_entry"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]