aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2008-01-12 00:38:00 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2008-01-12 00:38:00 +0800
commitc5977a1fef7af4bdd3ed2f878e2fde26565d4bdd (patch)
treed805047bc30491f64f23a88c6a2c6f247e4563dd /calendar
parent16ed932ab391d318fbfd1ecf042573b91f6ecfb2 (diff)
downloadgsoc2013-evolution-c5977a1fef7af4bdd3ed2f878e2fde26565d4bdd.tar
gsoc2013-evolution-c5977a1fef7af4bdd3ed2f878e2fde26565d4bdd.tar.gz
gsoc2013-evolution-c5977a1fef7af4bdd3ed2f878e2fde26565d4bdd.tar.bz2
gsoc2013-evolution-c5977a1fef7af4bdd3ed2f878e2fde26565d4bdd.tar.lz
gsoc2013-evolution-c5977a1fef7af4bdd3ed2f878e2fde26565d4bdd.tar.xz
gsoc2013-evolution-c5977a1fef7af4bdd3ed2f878e2fde26565d4bdd.tar.zst
gsoc2013-evolution-c5977a1fef7af4bdd3ed2f878e2fde26565d4bdd.zip
** Fix for bug #508731
2008-01-11 Srinivasa Ragavan <sragavan@novell.com> ** Fix for bug #508731 * gui/e-calendar-view.c: (e_calendar_view_new_appointment_full): Have a safe default, if the values from gconf isn't so nice. svn path=/trunk/; revision=34801
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/e-calendar-view.c3
2 files changed, 10 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index cb95e8f516..e417161b15 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-11 Srinivasa Ragavan <sragavan@novell.com>
+
+ ** Fix for bug #508731
+
+ * gui/e-calendar-view.c: (e_calendar_view_new_appointment_full):
+ Have a safe default, if the values from gconf isn't so nice.
+
2008-01-10 Milan Crha <mcrha@redhat.com>
** Fix for bug #457842
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c
index 3cae08331e..7246ea1534 100644
--- a/calendar/gui/e-calendar-view.c
+++ b/calendar/gui/e-calendar-view.c
@@ -1923,6 +1923,9 @@ e_calendar_view_new_appointment_full (ECalendarView *cal_view, gboolean all_day,
int time_div = calendar_config_get_time_divisions ();
int hours, mins;
+ if (!time_div) /* Possible if your gconf values aren't so nice */
+ time_div = 30;
+
if (time_day_begin (now) == time_day_begin (dtstart)) {
/* same day as today */
hours = local.tm_hour;