network-manager-applet r737 - in trunk: . src



Author: dcbw
Date: Thu May 29 21:30:13 2008
New Revision: 737
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=737&view=rev

Log:
2008-05-29  Dan Williams  <dcbw redhat com>

	* src/applet.c
		- (nma_menu_add_devices): only count wireless devices that are actually
			usable



Modified:
   trunk/ChangeLog
   trunk/src/applet.c

Modified: trunk/src/applet.c
==============================================================================
--- trunk/src/applet.c	(original)
+++ trunk/src/applet.c	Thu May 29 21:30:13 2008
@@ -876,8 +876,10 @@
 			continue;
 
 		if (NM_IS_DEVICE_802_11_WIRELESS (device)) {
-			if (nm_client_wireless_get_enabled (applet->nm_client))
+			if (   nm_client_wireless_get_enabled (applet->nm_client)
+			    && (nm_device_get_state (device) >= NM_DEVICE_STATE_DISCONNECTED)) {
 				n_wireless_devices++;
+			}
 		} else if (NM_IS_DEVICE_802_3_ETHERNET (device))
 			n_wired_devices++;
 		else if (NM_IS_CDMA_DEVICE (device))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]