diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-19 09:16:59 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-19 09:16:59 +0800 |
commit | 3b76de8bcdab2e043b5882ff096a1602f12b8db6 (patch) | |
tree | 122249b482cb530a80a6faf2bf14feb7b7a355f3 /calendar/gui/year-view.c | |
parent | 64a3522acac1f96115f6d8aaee15dcb1d5812f5a (diff) | |
download | gsoc2013-evolution-3b76de8bcdab2e043b5882ff096a1602f12b8db6.tar gsoc2013-evolution-3b76de8bcdab2e043b5882ff096a1602f12b8db6.tar.gz gsoc2013-evolution-3b76de8bcdab2e043b5882ff096a1602f12b8db6.tar.bz2 gsoc2013-evolution-3b76de8bcdab2e043b5882ff096a1602f12b8db6.tar.lz gsoc2013-evolution-3b76de8bcdab2e043b5882ff096a1602f12b8db6.tar.xz gsoc2013-evolution-3b76de8bcdab2e043b5882ff096a1602f12b8db6.tar.zst gsoc2013-evolution-3b76de8bcdab2e043b5882ff096a1602f12b8db6.zip |
Various small fixes here and there -mig
svn path=/trunk/; revision=160
Diffstat (limited to 'calendar/gui/year-view.c')
-rw-r--r-- | calendar/gui/year-view.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/gui/year-view.c b/calendar/gui/year-view.c index 5376826239..dd1a963d52 100644 --- a/calendar/gui/year-view.c +++ b/calendar/gui/year-view.c @@ -22,10 +22,11 @@ double_click(GtkCalendar *gc, GncalYearView *yview) tm.tm_mday = gc->selected_day; tm.tm_mon = gc->month; - tm.tm_year = gc->year; + tm.tm_year = gc->year - 1900; tm.tm_hour = 0; tm.tm_min = 0; tm.tm_sec = 0; + tm.tm_isdst = -1; t = mktime (&tm); gnome_calendar_dayjump (yview->gcal, t); @@ -199,7 +200,7 @@ gncal_year_view_set_year (GncalYearView *yview, int year) gtk_label_set(GTK_LABEL(yview->year_label), buff); for (i = 0; i < 12; i++) { - gtk_calendar_select_month (GTK_CALENDAR(yview->calendar[i]), i, yview->year); + gtk_calendar_select_month (GTK_CALENDAR(yview->calendar[i]), i, yview->year + 1900); gtk_calendar_clear_marks (GTK_CALENDAR (yview->calendar[i])); } |