[gnome-control-center] network: use the new network-wired-disconnected icon



commit 3bee2844a7e441cf5360a9d49290615725de1fd1
Author: Richard Hughes <richard hughsie com>
Date:   Fri Mar 11 15:56:49 2011 +0000

    network: use the new network-wired-disconnected icon
    
    You need to build a gnome-icon-theme from git for this to work correctly.

 panels/network/cc-network-panel.c |    2 +-
 panels/network/panel-common.c     |    5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 5e79e4e..5bf4e8b 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -830,7 +830,7 @@ nm_device_refresh_device_ui (CcNetworkPanel *panel, NMDevice *device)
                                                      "label_status"));
         str = panel_device_state_to_localized_string (state);
         if (nm_device_get_device_type (device) == NM_DEVICE_TYPE_ETHERNET &&
-            state == NM_DEVICE_STATE_DISCONNECTED) {
+            (state == NM_DEVICE_STATE_UNAVAILABLE)) {
                 /* TRANSLATORS: this is a wired connection that is disconnected */
                 str = _("Unplugged");
         }
diff --git a/panels/network/panel-common.c b/panels/network/panel-common.c
index f84941b..30a92af 100644
--- a/panels/network/panel-common.c
+++ b/panels/network/panel-common.c
@@ -40,9 +40,8 @@ panel_device_to_icon_name (NMDevice *device)
         switch (nm_device_get_device_type (device)) {
         case NM_DEVICE_TYPE_ETHERNET:
                 state = nm_device_get_state (device);
-                if (state == NM_DEVICE_STATE_DISCONNECTED) {
-                        /* TODO: we really want network-wired-disconnected */
-                        value = "network-offline";
+                if (state == NM_DEVICE_STATE_UNAVAILABLE) {
+                        value = "network-wired-disconnected";
                 } else {
                         value = "network-wired";
                 }



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