network: Only show bluetooth devices in Bluetooth section
Historically, the bluetooth section has been the dumping ground for any device we don't handle in another way. It has had the "Bluetooth" title for a long time now though, and many of the devices that end up in there are actually not useful in the GNOME context. There are some people complaining that we should support these devices properly, but the status quo does not help any one either really, so lets remove them entirely for now. Obsoletes: !203 Fixes: #190 Touches: #167
This commit is contained in:
parent
e5b017f45e
commit
77cae9ce72
1 changed files with 10 additions and 13 deletions
|
@ -468,21 +468,18 @@ panel_add_device (CcNetworkPanel *panel, NMDevice *device)
|
|||
case NM_DEVICE_TYPE_MODEM:
|
||||
device_g_type = NET_TYPE_DEVICE_MOBILE;
|
||||
break;
|
||||
/* Let the wi-fi panel take care of wifi devices */
|
||||
case NM_DEVICE_TYPE_WIFI:
|
||||
/* not going to set up a cluster in GNOME */
|
||||
case NM_DEVICE_TYPE_VETH:
|
||||
/* enterprise features */
|
||||
case NM_DEVICE_TYPE_BOND:
|
||||
case NM_DEVICE_TYPE_TEAM:
|
||||
/* Don't need the libvirtd bridge */
|
||||
case NM_DEVICE_TYPE_BRIDGE:
|
||||
/* Don't add VPN devices */
|
||||
case NM_DEVICE_TYPE_TUN:
|
||||
return;
|
||||
default:
|
||||
case NM_DEVICE_TYPE_BT:
|
||||
device_g_type = NET_TYPE_DEVICE_SIMPLE;
|
||||
break;
|
||||
|
||||
/* For Wi-Fi and VPN we handle connections separately; we correctly manage
|
||||
* them, but not here.
|
||||
*/
|
||||
case NM_DEVICE_TYPE_WIFI:
|
||||
case NM_DEVICE_TYPE_TUN:
|
||||
/* And the rest we simply cannot deal with currently. */
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
/* create device */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue