aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
authorPaul Collins <paul@burly.ondioline.org>2009-01-01 22:54:04 +0100
committerMax Kellermann <max@duempel.org>2009-01-01 22:54:04 +0100
commit3f0e5e147f89f77061739781889571d24da8b7d8 (patch)
tree521b51c9fcd9d4f8b44d716ef2584fa36287fe44 /src/screen.c
parente67ad30e9bea8ce099b4a6311cf2b20ce6d86263 (diff)
downloadmpd-3f0e5e147f89f77061739781889571d24da8b7d8.tar.gz
mpd-3f0e5e147f89f77061739781889571d24da8b7d8.tar.xz
mpd-3f0e5e147f89f77061739781889571d24da8b7d8.zip
added option to disable the status line clock display
I already have a clock, and I don't need ncmpc showing me another one. This patch adds command line options and a config file item to allow the user to flexibly enable or disable the clock. [mk: patch from http://bugs.debian.org/510392; removed command line options]
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/screen.c b/src/screen.c
index 1f44f7398..924cf4bd8 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -338,10 +338,12 @@ paint_status_window(mpdclient_t *c)
}
#ifndef NCMPC_MINI
} else {
- time_t timep;
+ if (options.display_time) {
+ time_t timep;
- time(&timep);
- strftime(screen.buf, screen.buf_size, "%X ",localtime(&timep));
+ time(&timep);
+ strftime(screen.buf, screen.buf_size, "%X ",localtime(&timep));
+ }
#endif
}