[network-manager-applet] applet: use icons for broadband device based on signal strength



commit 0261738a42f2c082114a7ef7b7085908498cac56
Author: Thomas Haller <thaller redhat com>
Date:   Tue Feb 23 19:03:23 2016 +0100

    applet: use icons for broadband device based on signal strength
    
    https://bugzilla.gnome.org/show_bug.cgi?id=686357

 src/applet-device-broadband.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/applet-device-broadband.c b/src/applet-device-broadband.c
index f59cfc0..4de2b04 100644
--- a/src/applet-device-broadband.c
+++ b/src/applet-device-broadband.c
@@ -947,6 +947,9 @@ modem_state_changed (MMModem *object,
        if ((old < MM_MODEM_STATE_REGISTERED &&
             new >= MM_MODEM_STATE_REGISTERED)) {
                guint32 mb_state;
+               const char *signal_strength_icon;
+
+               signal_strength_icon = mobile_helper_get_quality_icon_name 
(mm_modem_get_signal_quality(info->mm_modem, NULL));
 
                /* Notify about new registration info */
                mb_state = broadband_state_to_mb_state (info);
@@ -954,13 +957,13 @@ modem_state_changed (MMModem *object,
                        applet_do_notify_with_pref (info->applet,
                                                    _("Mobile Broadband network."),
                                                    _("You are now registered on the home network."),
-                                                   "nm-signal-100",
+                                                   signal_strength_icon,
                                                    PREF_DISABLE_CONNECTED_NOTIFICATIONS);
                } else if (mb_state == MB_STATE_ROAMING) {
                        applet_do_notify_with_pref (info->applet,
                                                    _("Mobile Broadband network."),
                                                    _("You are now registered on a roaming network."),
-                                                   "nm-signal-100",
+                                                   signal_strength_icon,
                                                    PREF_DISABLE_CONNECTED_NOTIFICATIONS);
                }
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]