aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2002-01-12 08:24:57 +0800
committerDamon Chaplin <damon@src.gnome.org>2002-01-12 08:24:57 +0800
commit8ac60f4e7e10b80d2c854c5bd76a9dde5b361656 (patch)
tree001bfb86edf966ee3e8cad16381c2ac4c3f55646 /widgets/misc
parentb2512674a0f8ccb34b631c16c3c24fdc201c9f12 (diff)
downloadgsoc2013-evolution-8ac60f4e7e10b80d2c854c5bd76a9dde5b361656.tar
gsoc2013-evolution-8ac60f4e7e10b80d2c854c5bd76a9dde5b361656.tar.gz
gsoc2013-evolution-8ac60f4e7e10b80d2c854c5bd76a9dde5b361656.tar.bz2
gsoc2013-evolution-8ac60f4e7e10b80d2c854c5bd76a9dde5b361656.tar.lz
gsoc2013-evolution-8ac60f4e7e10b80d2c854c5bd76a9dde5b361656.tar.xz
gsoc2013-evolution-8ac60f4e7e10b80d2c854c5bd76a9dde5b361656.tar.zst
gsoc2013-evolution-8ac60f4e7e10b80d2c854c5bd76a9dde5b361656.zip
translate timezone names, and provide a function to get back to the
2002-01-11 Damon Chaplin <damon@ximian.com> * e-timezone-dialog/e-timezone-dialog.[hc]: translate timezone names, and provide a function to get back to the English version. svn path=/trunk/; revision=15303
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-calendar-item.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/widgets/misc/e-calendar-item.c b/widgets/misc/e-calendar-item.c
index 9c52e2d9bf..cb74878a0d 100644
--- a/widgets/misc/e-calendar-item.c
+++ b/widgets/misc/e-calendar-item.c
@@ -2412,6 +2412,14 @@ e_calendar_item_mark_days (ECalendarItem *calitem,
if (month_offset == end_month_offset && day > end_day)
break;
+ if (month_offset < -1 || month_offset > calitem->rows * calitem->cols)
+ g_warning ("Bad month offset: %i\n", month_offset);
+ if (day < 1 || day > 31)
+ g_warning ("Bad day: %i\n", day);
+
+#if 0
+ g_print ("Marking Month:%i Day:%i\n", month_offset, day);
+#endif
calitem->styles[(month_offset + 1) * 32 + day] = day_style;
day++;