From fea9da1b2e8d18d42e68a6084057dec0e6316686 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 10 Sep 2013 08:49:36 -0400 Subject: [PATCH] network: don't show unmanaged devices And in particular, in NM 0.9.10, don't show NM_DEVICE_TYPE_GENERIC devices. https://bugzilla.gnome.org/show_bug.cgi?id=706868 --- panels/network/cc-network-panel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c index 8936e9f08..cab9f4c29 100644 --- a/panels/network/cc-network-panel.c +++ b/panels/network/cc-network-panel.c @@ -667,6 +667,9 @@ panel_add_device (CcNetworkPanel *panel, NMDevice *device) GtkSizeGroup *size_group; GType device_g_type; + if (!nm_device_get_managed (device)) + goto out; + /* do we have an existing object with this id? */ if (find_in_model_by_id (panel, nm_device_get_udi (device), NULL) != NULL) goto out;