[gnome-control-center] network: Say 'never' when the connection	hasn't been used
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-control-center] network: Say 'never' when the connection	hasn't been used
- Date: Thu, 13 Sep 2012 14:49:16 +0000 (UTC)
commit 78e9ed9ceacb0b09cbe4eda35261dc66b4d8222e
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Sep 8 17:49:25 2012 -0400
    network: Say 'never' when the connection hasn't been used
    
    Nicer to say 'Last used: never', then to show nothing.
 panels/network/net-device-wifi.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 4f45a44..37e429f 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -1649,8 +1649,10 @@ update_saved_last_used (NetDeviceWifi *device_wifi)
         if (s_con == NULL)
                 goto out;
         timestamp = nm_setting_connection_get_timestamp (s_con);
-        if (timestamp == 0)
+        if (timestamp == 0) {
+                last_used = g_strdup (_("never"));
                 goto out;
+        }
 
         /* calculate the amount of time that has elapsed */
         now = g_date_time_new_now_utc ();
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]