aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-06-14 14:15:11 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-06-14 14:15:11 -0500
commit2e2f7e3ddea38b1f53461a4b18d3cd133dd457c5 (patch)
tree17e8a5a6ead35b5a54f9401ff6370b3848d18f54
parent5988e06c3df519ae2dcce7454ffc597bcc3ce9e5 (diff)
downloadayatana-ido-2e2f7e3ddea38b1f53461a4b18d3cd133dd457c5.tar.gz
ayatana-ido-2e2f7e3ddea38b1f53461a4b18d3cd133dd457c5.tar.bz2
ayatana-ido-2e2f7e3ddea38b1f53461a4b18d3cd133dd457c5.zip
in idolocationmenuitem, assume seconds are shown in the timestamp when the time format string includes '%s', '%S', '%T', '%X', or '%c'
-rw-r--r--src/idolocationmenuitem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/idolocationmenuitem.c b/src/idolocationmenuitem.c
index 6646d12..34e5de3 100644
--- a/src/idolocationmenuitem.c
+++ b/src/idolocationmenuitem.c
@@ -152,9 +152,9 @@ start_timestamp_timer (IdoLocationMenuItem * self)
stop_timestamp_timer (self);
- timestamp_shows_seconds = fmt && (strstr(fmt,"%s") ||
- strstr(fmt,"%S") ||
- strstr(fmt,"%T"));
+ timestamp_shows_seconds = fmt && (strstr(fmt,"%s") || strstr(fmt,"%S") ||
+ strstr(fmt,"%T") || strstr(fmt,"%X") ||
+ strstr(fmt,"%c"));
if (timestamp_shows_seconds)
interval_sec = 1;