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:
Benjamin Berg 2019-03-21 14:22:12 +01:00
parent e5b017f45e
commit 77cae9ce72

View file

@ -468,21 +468,18 @@ panel_add_device (CcNetworkPanel *panel, NMDevice *device)
case NM_DEVICE_TYPE_MODEM: case NM_DEVICE_TYPE_MODEM:
device_g_type = NET_TYPE_DEVICE_MOBILE; device_g_type = NET_TYPE_DEVICE_MOBILE;
break; break;
/* Let the wi-fi panel take care of wifi devices */ case NM_DEVICE_TYPE_BT:
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:
device_g_type = NET_TYPE_DEVICE_SIMPLE; device_g_type = NET_TYPE_DEVICE_SIMPLE;
break; 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 */ /* create device */