netspeed r153 - in trunk: . src
- From: mfcn svn gnome org
- To: svn-commits-list gnome org
- Subject: netspeed r153 - in trunk: . src
- Date: Sun, 2 Nov 2008 13:50:48 +0000 (UTC)
Author: mfcn
Date: Sun Nov 2 13:50:48 2008
New Revision: 153
URL: http://svn.gnome.org/viewvc/netspeed?rev=153&view=rev
Log:
* src/netspeed.c (settings_cb):
Fix off-by-one bug; Fixes #557477
Modified:
trunk/ChangeLog
trunk/src/netspeed.c
Modified: trunk/src/netspeed.c
==============================================================================
--- trunk/src/netspeed.c (original)
+++ trunk/src/netspeed.c Sun Nov 2 13:50:48 2008
@@ -1022,7 +1022,7 @@
/* Default means device with default route set */
gtk_combo_box_append_text(GTK_COMBO_BOX(applet->network_device_combo), _("Default"));
ptr = devices = get_available_devices();
- for (i = 0; ptr; ptr = g_list_next(ptr)) {
+ for (i = 1; ptr; ptr = g_list_next(ptr)) {
gtk_combo_box_append_text(GTK_COMBO_BOX(applet->network_device_combo), ptr->data);
if (g_str_equal(ptr->data, applet->devinfo.name)) active = i;
++i;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]