mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 14:40:21 +01:00
2005-10-02 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet.c - Adjust signal strength -> icon mapping values slightly (so that 51% signal doesn't show a 75% icon) by adding 5% to the values. ex: > 5% now shows 25% icon, > 30% shows 50% icon, etc. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@984 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
de03d96430
commit
92bb1e6414
2 changed files with 12 additions and 4 deletions
|
|
@ -1,3 +1,11 @@
|
|||
2005-10-02 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* gnome/applet/applet.c
|
||||
- Adjust signal strength -> icon mapping values slightly
|
||||
(so that 51% signal doesn't show a 75% icon) by adding
|
||||
5% to the values. ex: > 5% now shows 25% icon, > 30%
|
||||
shows 50% icon, etc.
|
||||
|
||||
2005-09-29 Robert Love <rml@novell.com>
|
||||
|
||||
* src/NetworkManager.c: removed unused variable.
|
||||
|
|
|
|||
|
|
@ -873,13 +873,13 @@ static GdkPixbuf *nmwa_get_connected_icon (NMWirelessApplet *applet, NetworkDevi
|
|||
else
|
||||
{
|
||||
strength = CLAMP ((int)network_device_get_strength (dev), 0, 100);
|
||||
if (strength > 75)
|
||||
if (strength > 80)
|
||||
pixbuf = applet->wireless_100_icon;
|
||||
else if (strength > 50)
|
||||
else if (strength > 55)
|
||||
pixbuf = applet->wireless_75_icon;
|
||||
else if (strength > 25)
|
||||
else if (strength > 30)
|
||||
pixbuf = applet->wireless_50_icon;
|
||||
else if (strength > 0)
|
||||
else if (strength > 5)
|
||||
pixbuf = applet->wireless_25_icon;
|
||||
else
|
||||
pixbuf = applet->wireless_00_icon;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue