fixed issue 45, segfault without clock

git-svn-id: http://tint2.googlecode.com/svn/trunk@55 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr
2009-02-14 20:11:37 +00:00
parent 283a7fe289
commit 0139382514
8 changed files with 17 additions and 24 deletions

View File

@@ -48,12 +48,10 @@ void init_clock(Clock *clock, Area *parent)
clock->area.parent = parent;
clock->area.panel = panel;
clock->area._draw_foreground = draw_foreground_clock;
clock->area._resize = resize_clock;
if (!time1_format) return;
// add clock to the panel
panel->area.list = g_slist_append(panel->area.list, clock);
clock->area._draw_foreground = draw_foreground_clock;
clock->area._resize = resize_clock;
if (strchr(time1_format, 'S') == NULL) time_precision = 60;
else time_precision = 1;