aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/year-view.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1999-09-28 04:56:29 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-09-28 04:56:29 +0800
commit241a65b72b3620f85bad00fac28d268e5f47d2d6 (patch)
tree94f749268b21a9ae37a71ff2ad2cb91cc23e311a /calendar/gui/year-view.c
parent9d0b58bb8eb5a2180c6d38d7e45c9396331dc725 (diff)
downloadgsoc2013-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/year-view.c')
-rw-r--r--calendar/gui/year-view.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/calendar/gui/year-view.c b/calendar/gui/year-view.c
index 6b338bfdec..5744b4a88f 100644
--- a/calendar/gui/year-view.c
+++ b/calendar/gui/year-view.c
@@ -629,7 +629,7 @@ static void
mark_current_day (YearView *yv)
{
time_t t;
- struct tm *tm;
+ struct tm tm;
int month_index, day_index;
GnomeCanvasItem *item;
@@ -652,11 +652,11 @@ mark_current_day (YearView *yv)
/* Mark the new day */
t = time (NULL);
- tm = localtime (&t);
+ tm = *localtime (&t);
- if ((tm->tm_year + 1900) == yv->year) {
- month_index = tm->tm_mon;
- day_index = gnome_month_item_day2index (GNOME_MONTH_ITEM (yv->mitems[month_index]), tm->tm_mday);
+ if ((tm.tm_year + 1900) == yv->year) {
+ month_index = tm.tm_mon;
+ day_index = gnome_month_item_day2index (GNOME_MONTH_ITEM (yv->mitems[month_index]), tm.tm_mday);
g_assert (day_index != -1);
item = gnome_month_item_num2child (GNOME_MONTH_ITEM (yv->mitems[month_index]),
@@ -673,15 +673,15 @@ mark_current_day (YearView *yv)
void
year_view_set (YearView *yv, time_t year)
{
- struct tm *tm;
+ struct tm tm;
char buf[100];
int i;
g_return_if_fail (yv != NULL);
g_return_if_fail (IS_YEAR_VIEW (yv));
- tm = localtime (&year);
- yv->year = tm->tm_year + 1900;
+ tm = *localtime (&year);
+ yv->year = tm.tm_year + 1900;
/* Heading */