netspeed r129 - in trunk: . icons/24x24/status src
- From: mfcn svn gnome org
- To: svn-commits-list gnome org
- Subject: netspeed r129 - in trunk: . icons/24x24/status src
- Date: Sun, 24 Aug 2008 19:31:16 +0000 (UTC)
Author: mfcn
Date: Sun Aug 24 19:31:16 2008
New Revision: 129
URL: http://svn.gnome.org/viewvc/netspeed?rev=129&view=rev
Log:
* src/netspeed.c (update_quality_icon):
Make the scaling for the wireless inidcator logarithmic
* New icons
Modified:
trunk/ChangeLog
trunk/icons/24x24/status/netspeed-wireless-100.png
trunk/icons/24x24/status/netspeed-wireless-25.png
trunk/icons/24x24/status/netspeed-wireless-50.png
trunk/icons/24x24/status/netspeed-wireless-75.png
trunk/src/netspeed.c
Modified: trunk/icons/24x24/status/netspeed-wireless-100.png
==============================================================================
Binary files. No diff available.
Modified: trunk/icons/24x24/status/netspeed-wireless-25.png
==============================================================================
Binary files. No diff available.
Modified: trunk/icons/24x24/status/netspeed-wireless-50.png
==============================================================================
Binary files. No diff available.
Modified: trunk/icons/24x24/status/netspeed-wireless-75.png
==============================================================================
Binary files. No diff available.
Modified: trunk/src/netspeed.c
==============================================================================
--- trunk/src/netspeed.c (original)
+++ trunk/src/netspeed.c Sun Aug 24 19:31:16 2008
@@ -346,9 +346,10 @@
{
unsigned int q;
- q = (applet->devinfo.qual - 1) / 25;
+ q = (applet->devinfo.qual - 1) / 5;
+ q = logf (1.0f * q) + 0.5f;
- g_assert(q < 4);
+ g_assert(q >= 0 && q < 4);
gtk_image_set_from_pixbuf (GTK_IMAGE(applet->qual_pix), applet->qual_pixbufs[q]);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]