From e9f68f66dc9d559d9da77d641f3ca925b9973c7b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 11 Jun 2012 12:24:12 -0400 Subject: [PATCH] clock: Default to not show seconds We can make it configurable, but for now, default to not showing seconds. --- clients/desktop-shell.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c index 03bb6ec..9a1b502 100644 --- a/clients/desktop-shell.c +++ b/clients/desktop-shell.c @@ -319,7 +319,7 @@ panel_clock_redraw_handler(struct widget *widget, void *data) time(&rawtime); timeinfo = localtime(&rawtime); - strftime(string, sizeof string, "%a %b %d, %I:%M:%S %p", timeinfo); + strftime(string, sizeof string, "%a %b %d, %I:%M %p", timeinfo); widget_get_allocation(widget, &allocation); if (allocation.width == 0) @@ -349,9 +349,9 @@ clock_timer_reset(struct panel_clock *clock) { struct itimerspec its; - its.it_interval.tv_sec = 1; + its.it_interval.tv_sec = 60; its.it_interval.tv_nsec = 0; - its.it_value.tv_sec = 1; + its.it_value.tv_sec = 60; its.it_value.tv_nsec = 0; if (timerfd_settime(clock->clock_fd, 0, &its, NULL) < 0) { fprintf(stderr, "could not set timerfd\n: %m"); -- 2.7.4