all repos — tint2 @ dee9b628665b6a32e8020786e5ac75889f5d0a52

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

fixed issue 71 time format

git-svn-id: http://tint2.googlecode.com/svn/trunk@82 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
lorthiois@bbsoft.fr lorthiois@bbsoft.fr@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

dee9b628665b6a32e8020786e5ac75889f5d0a52

parent

2c805222125f0a463d65869a5fe4f293eac11ac7

3 files changed, 7 insertions(+), 2 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,3 +1,6 @@

+2009-05-31 +- fixed issue 71 : time format %T %r + 2009-05-31 - fixed issue 86 : padding bug
M src/clock/clock.csrc/clock/clock.c

@@ -58,8 +58,10 @@ clock->area._resize = resize_clock;

if (!clock->area.on_screen) continue; - if (strchr(time1_format, 'S') == NULL) time_precision = 60; - else time_precision = 1; + if (strchr(time1_format, 'S')) time_precision = 1; + else if (strchr(time1_format, 'T')) time_precision = 1; + else if (strchr(time1_format, 'r')) time_precision = 1; + else time_precision = 60; // update clock to force update (-time_precision) struct timeval stv;