mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 16:58:01 +02:00
clock: Default to not show seconds
We can make it configurable, but for now, default to not showing seconds.
This commit is contained in:
parent
23cf9eb04f
commit
e9f68f66dc
1 changed files with 3 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue