[gnome-control-center] network: a disconnected wired connection is 'Unplugged', not 'Disconnected'



commit 4fc48a3fb3c9f0d3c76d205e659ec8291317ba0b
Author: Richard Hughes <richard hughsie com>
Date:   Fri Mar 11 15:04:15 2011 +0000

    network: a disconnected wired connection is 'Unplugged', not 'Disconnected'

 panels/network/cc-network-panel.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 785f58d..05659c9 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -827,8 +827,13 @@ nm_device_refresh_device_ui (CcNetworkPanel *panel, NMDevice *device)
         state = nm_device_get_state (device);
         widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
                                                      "label_status"));
-        gtk_label_set_label (GTK_LABEL (widget),
-                             panel_device_state_to_localized_string (state));
+        str = panel_device_state_to_localized_string (state);
+        if (nm_device_get_device_type (device) == NM_DEVICE_TYPE_ETHERNET &&
+            state == NM_DEVICE_STATE_DISCONNECTED) {
+                /* TRANSLATORS: this is a wired connection that is disconnected */
+                str = _("Unplugged");
+        }
+        gtk_label_set_label (GTK_LABEL (widget), str);
 
         widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
                                                      "notebook_types"));



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