From 77cae9ce724fa0ed72b94badbdd09b9d2ae16fc9 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Thu, 21 Mar 2019 14:22:12 +0100 Subject: [PATCH] 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 --- panels/network/cc-network-panel.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c index 15f0f93f0..2d8676f3e 100644 --- a/panels/network/cc-network-panel.c +++ b/panels/network/cc-network-panel.c @@ -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 */