[gnome-bluetooth] Don't display strings such as 2 minutes 0 seconds, just show 2 minutes
- From: Ross Burton <rburton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] Don't display strings such as 2 minutes 0 seconds, just show 2 minutes
- Date: Thu, 15 Apr 2010 15:41:31 +0000 (UTC)
commit ff14fef9ec285bd2445c759216efb770677dad9a
Author: Ross Burton <ross linux intel com>
Date: Thu Feb 25 15:56:04 2010 +0000
Don't display strings such as 2 minutes 0 seconds, just show 2 minutes
moblin/moblin-panel.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/moblin/moblin-panel.c b/moblin/moblin-panel.c
index 8e62549..50189f3 100644
--- a/moblin/moblin-panel.c
+++ b/moblin/moblin-panel.c
@@ -185,8 +185,13 @@ totem_time_to_string_text (gint64 msecs)
/* hour:minutes:seconds */
string = g_strdup_printf (_("%s %s %s"), hours, mins, secs);
} else if (min > 0) {
- /* minutes:seconds */
- string = g_strdup_printf (_("%s %s"), mins, secs);
+ if (sec) {
+ /* minutes:seconds */
+ string = g_strdup_printf (_("%s %s"), mins, secs);
+ } else {
+ /* minutes */
+ string = g_strdup_printf (_("%s"), mins);
+ }
} else if (sec > 0) {
/* seconds */
string = g_strdup_printf (_("%s"), secs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]