[network-manager-applet] cdma: show signal quality in tooltip when connected
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] cdma: show signal quality in tooltip when connected
- Date: Sat, 27 Feb 2010 22:25:46 +0000 (UTC)
commit 51a02f3bcb3e2b15ba207066bfad5d492ee17c79
Author: Dan Williams <dcbw redhat com>
Date: Sat Feb 27 14:25:52 2010 -0800
cdma: show signal quality in tooltip when connected
src/applet-device-cdma.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/applet-device-cdma.c b/src/applet-device-cdma.c
index f4a44fc..398bbba 100644
--- a/src/applet-device-cdma.c
+++ b/src/applet-device-cdma.c
@@ -379,6 +379,10 @@ cdma_get_icon (NMDevice *device,
NMSettingConnection *s_con;
GdkPixbuf *pixbuf = NULL;
const char *id;
+ CdmaDeviceInfo *info;
+
+ info = g_object_get_data (G_OBJECT (device), "devinfo");
+ g_assert (info);
id = nm_device_get_iface (NM_DEVICE (device));
if (connection) {
@@ -401,7 +405,11 @@ cdma_get_icon (NMDevice *device,
break;
case NM_DEVICE_STATE_ACTIVATED:
pixbuf = nma_icon_check_and_load ("nm-device-wwan", &applet->wwan_icon, applet);
- *tip = g_strdup_printf (_("Mobile broadband connection '%s' active"), id);
+ if ((info->cdma1x_state || info->evdo_state) && info->quality_valid) {
+ *tip = g_strdup_printf (_("Mobile broadband connection '%s' active: (%d%%)"),
+ id, info->quality);
+ } else
+ *tip = g_strdup_printf (_("Mobile broadband connection '%s' active"), id);
break;
default:
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]