Commit 92bb1e64 authored by Dan Williams's avatar Dan Williams
Browse files

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
parent de03d964
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment