summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-02-23 19:03:23 +0100
committerThomas Haller <thaller@redhat.com>2016-02-23 19:03:23 +0100
commit0261738a42f2c082114a7ef7b7085908498cac56 (patch)
treeebbee89d422784cdd8953574760763709ce02953 /src
parent3b50ee0a09b8d71575c8457ca6d73b55dc5f211b (diff)
downloadnetwork-manager-applet-0261738a42f2c082114a7ef7b7085908498cac56.tar.gz
applet: use icons for broadband device based on signal strength
https://bugzilla.gnome.org/show_bug.cgi?id=686357
Diffstat (limited to 'src')
-rw-r--r--src/applet-device-broadband.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/applet-device-broadband.c b/src/applet-device-broadband.c
index f59cfc0f..4de2b043 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);
}
}