[gdm/wip/initial-setup] Refine the message if wifi is disabled



commit 35cdc28514edac7f04191fe1139f6069a977edb0
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue May 17 14:39:12 2011 -0400

    Refine the message if wifi is disabled
    
    No need to panic if we have a connection.

 gui/initial-setup/gdm-initial-setup.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gui/initial-setup/gdm-initial-setup.c b/gui/initial-setup/gdm-initial-setup.c
index a035e80..9db0ec5 100644
--- a/gui/initial-setup/gdm-initial-setup.c
+++ b/gui/initial-setup/gdm-initial-setup.c
@@ -379,7 +379,10 @@ refresh_wireless_list (SetupData *setup)
 
         if (state == NM_DEVICE_STATE_UNMANAGED ||
             state == NM_DEVICE_STATE_UNAVAILABLE) {
-                gtk_label_set_text (GTK_LABEL (label), _("Network is not available, make sure to turn airplane mode off."));
+                if (nm_client_get_state (setup->nm_client) == NM_STATE_CONNECTED_GLOBAL)
+                        gtk_label_set_text (GTK_LABEL (label), _("Wireless network is not available, but we are connected anyway."));
+                else
+                        gtk_label_set_text (GTK_LABEL (label), _("Network is not available, make sure to turn airplane mode off."));
                 gtk_widget_hide (swin);
                 gtk_widget_hide (spinner);
                 gtk_widget_show (label);



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