aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/schedule-page.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2006-07-31 18:17:20 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2006-07-31 18:17:20 +0800
commit3f74605b7a7db922972a7fbfee179888daafa061 (patch)
tree9fb943ef9e2f8d915365ad9bc504c5a960b302d8 /calendar/gui/dialogs/schedule-page.c
parent322b2c1d303d41d1914dfa8f1eb3d682be76690f (diff)
downloadgsoc2013-evolution-3f74605b7a7db922972a7fbfee179888daafa061.tar
gsoc2013-evolution-3f74605b7a7db922972a7fbfee179888daafa061.tar.gz
gsoc2013-evolution-3f74605b7a7db922972a7fbfee179888daafa061.tar.bz2
gsoc2013-evolution-3f74605b7a7db922972a7fbfee179888daafa061.tar.lz
gsoc2013-evolution-3f74605b7a7db922972a7fbfee179888daafa061.tar.xz
gsoc2013-evolution-3f74605b7a7db922972a7fbfee179888daafa061.tar.zst
gsoc2013-evolution-3f74605b7a7db922972a7fbfee179888daafa061.zip
Fixes #335276.
svn path=/trunk/; revision=32450
Diffstat (limited to 'calendar/gui/dialogs/schedule-page.c')
-rw-r--r--calendar/gui/dialogs/schedule-page.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/schedule-page.c b/calendar/gui/dialogs/schedule-page.c
index 4eaa235278..7a8afc6cfa 100644
--- a/calendar/gui/dialogs/schedule-page.c
+++ b/calendar/gui/dialogs/schedule-page.c
@@ -256,8 +256,6 @@ update_time (SchedulePage *spage, ECalComponentDateTime *start_date, ECalCompone
}
}
- e_meeting_time_selector_set_all_day (priv->sel, all_day);
-
e_date_edit_set_date (E_DATE_EDIT (priv->sel->start_date_edit), start_tt.year,
start_tt.month, start_tt.day);
e_date_edit_set_time_of_day (E_DATE_EDIT (priv->sel->start_date_edit),
@@ -386,6 +384,28 @@ init_widgets (SchedulePage *spage)
}
+void
+schedule_page_set_meeting_time (SchedulePage *spage, icaltimetype *start_tt, icaltimetype *end_tt)
+{
+ SchedulePagePrivate *priv;
+ gboolean all_day;
+
+ priv = spage->priv;
+
+ all_day = (start_tt->is_date && end_tt->is_date) ? TRUE : FALSE;
+
+ if (all_day) {
+ if (icaltime_compare_date_only (*end_tt, *start_tt) > 0) {
+ icaltime_adjust (end_tt, -1, 0, 0, 0);
+ }
+ }
+
+ e_meeting_time_selector_set_meeting_time (priv->sel, start_tt->year, start_tt->month, start_tt->day,
+ start_tt->hour, start_tt->minute, end_tt->year, end_tt->month, end_tt->day, end_tt->hour,
+ end_tt->minute);
+ e_meeting_time_selector_set_all_day (priv->sel, all_day);
+
+}
/**
* schedule_page_construct: