[gnome-control-center/wip/benzea/wifi-panel: 24/24] wifi: Show WEP with a broken security icon
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/benzea/wifi-panel: 24/24] wifi: Show WEP with a broken security icon
- Date: Mon, 7 Jan 2019 14:31:33 +0000 (UTC)
commit 020969497896c8b4718899c333293b755401bfaa
Author: Benjamin Berg <bberg redhat com>
Date: Thu Jan 3 16:51:02 2019 +0100
wifi: Show WEP with a broken security icon
WEP is rather insecure, and using it is a bad idea in general. So show
it as insecure rather than falsely advertising it as being secure.
panels/network/cc-wifi-connection-row.c | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/panels/network/cc-wifi-connection-row.c b/panels/network/cc-wifi-connection-row.c
index 3feec0d6e..17fa7ae55 100644
--- a/panels/network/cc-wifi-connection-row.c
+++ b/panels/network/cc-wifi-connection-row.c
@@ -239,9 +239,21 @@ update_ui (CcWifiConnectionRow *self)
gtk_widget_set_visible (GTK_WIDGET (self->active_icon), active);
if (security != NM_AP_SEC_UNKNOWN && security != NM_AP_SEC_NONE)
- gtk_widget_set_child_visible (GTK_WIDGET (self->encrypted_icon), TRUE);
+ {
+ gchar *icon_name;
+
+ gtk_widget_set_child_visible (GTK_WIDGET (self->encrypted_icon), TRUE);
+ if (security == NM_AP_SEC_WEP)
+ icon_name = "channel-insecure-symbolic";
+ else
+ icon_name = "network-wireless-encrypted-symbolic";
+
+ g_object_set (self->encrypted_icon, "icon-name", icon_name, NULL);
+ }
else
- gtk_widget_set_child_visible (GTK_WIDGET (self->encrypted_icon), FALSE);
+ {
+ gtk_widget_set_child_visible (GTK_WIDGET (self->encrypted_icon), FALSE);
+ }
if (best_ap)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]