View | Details | Raw Unified | Return to bug 95758
Collapse All | Expand All

(-)src/netspeed.c (-7 / +10 lines)
Lines 162-174 Link Here
162
	 */
162
	 */
163
	if (applet->change_icon)
163
	if (applet->change_icon)
164
	{
164
	{
165
		if (strstr(device, "ppp"))
165
		if (strstr(device, "tun"))
166
			type = gdk_pixbuf_new_from_xpm_data(ICON_PPP);
166
			type = gdk_pixbuf_new_from_xpm_data(ICON_PPP);
167
		else if (!strcmp(device, "lo"))
167
		else if (strstr(device, "lo"))
168
			type = gdk_pixbuf_new_from_xpm_data(ICON_LO);
168
			type = gdk_pixbuf_new_from_xpm_data(ICON_LO);
169
		else if (strstr(device, "lip"))
169
		else if (strstr(device, "plip"))
170
			type = gdk_pixbuf_new_from_xpm_data(ICON_PLIP);
170
			type = gdk_pixbuf_new_from_xpm_data(ICON_PLIP);
171
		else if (strstr(device, "wlan"))
171
		else if (strstr(device, "ath") || strstr(device, "wi"))
172
			type = gdk_pixbuf_new_from_xpm_data(ICON_WLAN);
173
		else if (strstr(device, "ndis") || strstr(device, "an") ||
174
			strstr(device, "ral") || strstr(device, "awi"))
172
			type = gdk_pixbuf_new_from_xpm_data(ICON_WLAN);
175
			type = gdk_pixbuf_new_from_xpm_data(ICON_WLAN);
173
		else
176
		else
174
			type = gdk_pixbuf_new_from_xpm_data(ICON_ETH);
177
			type = gdk_pixbuf_new_from_xpm_data(ICON_ETH);
Lines 386-392 Link Here
386
	
389
	
387
	devices = get_available_devices();
390
	devices = get_available_devices();
388
	for (tmp = devices; tmp; tmp = g_list_next(tmp)) {
391
	for (tmp = devices; tmp; tmp = g_list_next(tmp)) {
389
		if (!g_str_equal(tmp->data, "lo")) {
392
		if (!g_str_equal(tmp->data, "lo0")) {
390
			info = get_device_info(tmp->data);
393
			info = get_device_info(tmp->data);
391
			if (info.running) {
394
			if (info.running) {
392
				free_device_info(&applet->devinfo);
395
				free_device_info(&applet->devinfo);
Lines 1387-1399 Link Here
1387
		GList *ptr, *devices = get_available_devices();
1390
		GList *ptr, *devices = get_available_devices();
1388
		ptr = devices;
1391
		ptr = devices;
1389
		while (ptr) { 
1392
		while (ptr) { 
1390
			if (!g_str_equal(ptr->data, "lo"))
1393
			if (!g_str_equal(ptr->data, "lo0"))
1391
				applet->devinfo = get_device_info(ptr->data);
1394
				applet->devinfo = get_device_info(ptr->data);
1392
			ptr = g_list_next(ptr);
1395
			ptr = g_list_next(ptr);
1393
		}
1396
		}
1394
		free_devices_list(devices);		
1397
		free_devices_list(devices);		
1395
	}
1398
	}
1396
	if (!applet->devinfo.name) applet->devinfo = get_device_info("lo");	
1399
	if (!applet->devinfo.name) applet->devinfo = get_device_info("lo0");	
1397
	applet->device_has_changed = TRUE;	
1400
	applet->device_has_changed = TRUE;	
1398
	
1401
	
1399
	applet->tooltips = gtk_tooltips_new();
1402
	applet->tooltips = gtk_tooltips_new();

Return to bug 95758