[gnome-control-center] network: Add tooltip text to encrypted connection.
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Add tooltip text to encrypted connection.
- Date: Wed, 11 Sep 2019 03:21:07 +0000 (UTC)
commit 9316a77af4bf52fa8e1e45cb59b22854d8b59c29
Author: Veerasamy Sevagen <sevagenv gmail com>
Date: Wed Sep 11 03:20:55 2019 +0000
network: Add tooltip text to encrypted connection.
The issue was that sometimes the icon would show an error but we would not know what it is.
Fixes #468
panels/network/cc-wifi-connection-row.c | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/panels/network/cc-wifi-connection-row.c b/panels/network/cc-wifi-connection-row.c
index 88ca9dfdc..84c8aee10 100644
--- a/panels/network/cc-wifi-connection-row.c
+++ b/panels/network/cc-wifi-connection-row.c
@@ -244,9 +244,25 @@ update_ui (CcWifiConnectionRow *self)
gtk_widget_set_child_visible (GTK_WIDGET (self->encrypted_icon), TRUE);
if (security == NM_AP_SEC_WEP)
- icon_name = "channel-insecure-symbolic";
+ {
+ icon_name = "channel-insecure-symbolic";
+ gtk_widget_set_tooltip_text (GTK_WIDGET (self->encrypted_icon), _("Insecure network (WEP)"));
+ }
+ else if (security == NM_AP_SEC_WPA)
+ {
+ icon_name = "network-wireless-encrypted-symbolic";
+ gtk_widget_set_tooltip_text (GTK_WIDGET (self->encrypted_icon), _("Secure network (WPA)"));
+ }
+ else if (security == NM_AP_SEC_WPA2)
+ {
+ icon_name = "network-wireless-encrypted-symbolic";
+ gtk_widget_set_tooltip_text (GTK_WIDGET (self->encrypted_icon), _("Secure network (WPA2)"));
+ }
else
- icon_name = "network-wireless-encrypted-symbolic";
+ {
+ icon_name = "network-wireless-encrypted-symbolic";
+ gtk_widget_set_tooltip_text (GTK_WIDGET (self->encrypted_icon), _("Secure network"));
+ }
g_object_set (self->encrypted_icon, "icon-name", icon_name, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]