summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Lebl <jirka@src.gnome.org>1998-06-03 10:53:59 +0000
committerGeorge Lebl <jirka@src.gnome.org>1998-06-03 10:53:59 +0000
commit68bd146870d2c09edf56a7213f50d57f26d8fd94 (patch)
tree54255750c5797231bd71090a9a16601b2b44f903
parent56d6235feba7eeab85640d85a2fc7aaa7d897bce (diff)
slimmer vertical mode in 12 hour modeGNOME_0_20aGNOME_0_20
-George
-rw-r--r--gen_util/clock.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gen_util/clock.c b/gen_util/clock.c
index ede29b729..f35296021 100644
--- a/gen_util/clock.c
+++ b/gen_util/clock.c
@@ -108,8 +108,13 @@ computer_clock_update_func(ClockData * cd, time_t current_time)
if (cd->hourformat == 0) {
/* This format string is used, to display the actual time in
12 hour format. */
- if (strftime(hour, 20, _("%I:%M %p"), tm) == 20)
- hour[19] = '\0';
+ if (cd->orient == ORIENT_LEFT || cd->orient == ORIENT_RIGHT) {
+ if (strftime(hour, 20, _("%I:%M\n%p"), tm) == 20)
+ hour[19] = '\0';
+ } else {
+ if (strftime(hour, 20, _("%I:%M %p"), tm) == 20)
+ hour[19] = '\0';
+ }
} else if (cd->hourformat == 1) {
/* This format string is used, to display the actual time in
24 hour format. */