[gnome-control-center] network: minimal support for unrecognized device types



commit cb2eacdfd40fc607a2622d62c8a3134368138da2
Author: Dan Winship <danw gnome org>
Date:   Tue Oct 2 15:51:27 2012 -0400

    network: minimal support for unrecognized device types
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677151

 panels/network/cc-network-panel.c |    3 ++-
 panels/network/panel-common.c     |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index c53b6db..4fa7479 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -551,7 +551,8 @@ panel_add_device (CcNetworkPanel *panel, NMDevice *device)
                 device_g_type = NET_TYPE_DEVICE_WIFI;
                 break;
         default:
-                goto out;
+                device_g_type = NET_TYPE_DEVICE_SIMPLE;
+                break;
         }
 
         /* create device */
diff --git a/panels/network/panel-common.c b/panels/network/panel-common.c
index 1d38e94..fe7baf4 100644
--- a/panels/network/panel-common.c
+++ b/panels/network/panel-common.c
@@ -63,6 +63,7 @@ panel_device_to_icon_name (NMDevice *device)
                 }
                 break;
         default:
+                value = "network-idle";
                 break;
         }
         return value;



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