diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 1999-09-28 04:56:29 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-09-28 04:56:29 +0800 |
commit | 241a65b72b3620f85bad00fac28d268e5f47d2d6 (patch) | |
tree | 94f749268b21a9ae37a71ff2ad2cb91cc23e311a /calendar/gui/prop.c | |
parent | 9d0b58bb8eb5a2180c6d38d7e45c9396331dc725 (diff) | |
download | gsoc2013-evolution-241a65b72b3620f85bad00fac28d268e5f47d2d6.tar gsoc2013-evolution-241a65b72b3620f85bad00fac28d268e5f47d2d6.tar.gz gsoc2013-evolution-241a65b72b3620f85bad00fac28d268e5f47d2d6.tar.bz2 gsoc2013-evolution-241a65b72b3620f85bad00fac28d268e5f47d2d6.tar.lz gsoc2013-evolution-241a65b72b3620f85bad00fac28d268e5f47d2d6.tar.xz gsoc2013-evolution-241a65b72b3620f85bad00fac28d268e5f47d2d6.tar.zst gsoc2013-evolution-241a65b72b3620f85bad00fac28d268e5f47d2d6.zip |
Small fix -miguel
svn path=/trunk/; revision=1265
Diffstat (limited to 'calendar/gui/prop.c')
-rw-r--r-- | calendar/gui/prop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/calendar/gui/prop.c b/calendar/gui/prop.c index 87fad703f4..129407293b 100644 --- a/calendar/gui/prop.c +++ b/calendar/gui/prop.c @@ -412,7 +412,7 @@ fake_mark_days (void) static void set_current_day (void) { - struct tm *tm; + struct tm tm; time_t t; GnomeCanvasItem *item; int day_index; @@ -420,16 +420,16 @@ set_current_day (void) /* Set the date */ t = time (NULL); - tm = localtime (&t); + tm = *localtime (&t); gnome_canvas_item_set (month_item, - "year", tm->tm_year + 1900, - "month", tm->tm_mon, + "year", tm.tm_year + 1900, + "month", tm.tm_mon, NULL); /* Highlight current day */ - day_index = gnome_month_item_day2index (GNOME_MONTH_ITEM (month_item), tm->tm_mday); + day_index = gnome_month_item_day2index (GNOME_MONTH_ITEM (month_item), tm.tm_mday); item = gnome_month_item_num2child (GNOME_MONTH_ITEM (month_item), GNOME_MONTH_ITEM_DAY_LABEL + day_index); gnome_canvas_item_set (item, "fill_color", color_spec_from_picker (COLOR_PROP_CURRENT_DAY_FG), |