[gnome-control-center/Sevagen/gnome-control-center-master-1] cc-wifi-connection-row.ui: Add tooltip text to encrypted connection.



commit ea4bc3217aa4102f8ea773777c621362dee7e561
Author: Sevagen <sevagenv gmail com>
Date:   Wed Apr 17 11:17:42 2019 +0530

    cc-wifi-connection-row.ui: 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 | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/panels/network/cc-wifi-connection-row.c b/panels/network/cc-wifi-connection-row.c
index 88ca9dfdc..2b9aaa552 100644
--- a/panels/network/cc-wifi-connection-row.c
+++ b/panels/network/cc-wifi-connection-row.c
@@ -244,9 +244,15 @@ 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), _("WEP network"));
+       }
       else
-        icon_name = "network-wireless-encrypted-symbolic";
+       {
+          icon_name = "network-wireless-encrypted-symbolic";
+          gtk_widget_set_tooltip_text (GTK_WIDGET (self->encrypted_icon), _("Encrypted 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]