aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/month-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/month-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/month-view.c')
-rw-r--r--calendar/gui/month-view.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/calendar/gui/month-view.c b/calendar/gui/month-view.c
index 8f74d43d60..5df7b7a23d 100644
--- a/calendar/gui/month-view.c
+++ b/calendar/gui/month-view.c
@@ -621,7 +621,7 @@ static int
add_event (iCalObject *ico, time_t start, time_t end, void *data)
{
struct iter_info *ii;
- struct tm *tm;
+ struct tm tm;
time_t t;
time_t day_begin_time, day_end_time;
@@ -638,8 +638,8 @@ add_event (iCalObject *ico, time_t start, time_t end, void *data)
*/
do {
- tm = localtime (&day_begin_time);
- g_string_sprintfa (ii->strings[ii->first_day_index + tm->tm_mday - 1], "%s\n", ico->summary);
+ tm = *localtime (&day_begin_time);
+ g_string_sprintfa (ii->strings[ii->first_day_index + tm.tm_mday - 1], "%s\n", ico->summary);
/* Next day */
@@ -703,7 +703,7 @@ static void
mark_current_day (MonthView *mv)
{
time_t t;
- struct tm *tm;
+ struct tm tm;
GnomeCanvasItem *item;
/* Unmark the old day */
@@ -722,10 +722,10 @@ mark_current_day (MonthView *mv)
/* Mark the new day */
t = time (NULL);
- tm = localtime (&t);
+ tm = *localtime (&t);
- if (((tm->tm_year + 1900) == mv->year) && (tm->tm_mon == mv->month)) {
- mv->old_current_index = gnome_month_item_day2index (GNOME_MONTH_ITEM (mv->mitem), tm->tm_mday);
+ if (((tm.tm_year + 1900) == mv->year) && (tm.tm_mon == mv->month)) {
+ mv->old_current_index = gnome_month_item_day2index (GNOME_MONTH_ITEM (mv->mitem), tm.tm_mday);
g_assert (mv->old_current_index != -1);
item = gnome_month_item_num2child (GNOME_MONTH_ITEM (mv->mitem),
@@ -740,7 +740,7 @@ mark_current_day (MonthView *mv)
void
month_view_set (MonthView *mv, time_t month)
{
- struct tm *tm;
+ struct tm tm;
char buf[100];
g_return_if_fail (mv != NULL);
@@ -748,12 +748,12 @@ month_view_set (MonthView *mv, time_t month)
/* Title */
- tm = localtime (&month);
+ tm = *localtime (&month);
- mv->year = tm->tm_year + 1900;
- mv->month = tm->tm_mon;
+ mv->year = tm.tm_year + 1900;
+ mv->month = tm.tm_mon;
- strftime (buf, 100, _("%B %Y"), tm);
+ strftime (buf, 100, _("%B %Y"), &tm);
gnome_canvas_item_set (mv->title,
"text", buf,