[gnome-control-center] network: don't show unmanaged devices



commit fea9da1b2e8d18d42e68a6084057dec0e6316686
Author: Dan Winship <danw gnome org>
Date:   Tue Sep 10 08:49:36 2013 -0400

    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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 8936e9f..cab9f4c 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;


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