diff options
-rw-r--r-- | calendar/ChangeLog | 9 | ||||
-rw-r--r-- | calendar/gui/e-day-view.c | 6 | ||||
-rw-r--r-- | calendar/gui/e-week-view.c | 3 |
3 files changed, 18 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 815084d1fc..7d70236218 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,12 @@ +2007-08-17 Suman Manjunath <msuman@novell.com> + + reviewed by: Chenthill Palanisamy <pchenthill@novell.com> + + * gui/e-day-view.c: (e_day_view_do_key_press): + * gui/e-week-view.c: (e_week_view_do_key_press): + Set the free/busy info of events entered directly on the canvas, with + the editor defaults. + 2007-08-17 Chenthill Palanisamy <pchenthill@novell.com> Fixes #274070 (bnc) diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index 6d83770857..0be2ddfb41 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -6184,8 +6184,14 @@ e_day_view_do_key_press (GtkWidget *widget, GdkEventKey *event) start_dt.tzid = NULL; start_tt.is_date = 1; end_tt.is_date = 1; + + /* Editor default in day/work-week view - top canvas */ + e_cal_component_set_transparency (comp, E_CAL_COMPONENT_TRANSP_TRANSPARENT); } else { start_dt.tzid = icaltimezone_get_tzid (e_calendar_view_get_timezone (E_CALENDAR_VIEW (day_view))); + + /* Editor default in day/work-week view - main canvas */ + e_cal_component_set_transparency (comp, E_CAL_COMPONENT_TRANSP_OPAQUE); } start_dt.value = &start_tt; diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index df3950c49b..0cc9b7f66d 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -3966,6 +3966,9 @@ e_week_view_do_key_press (GtkWidget *widget, GdkEventKey *event) e_calendar_view_get_timezone (E_CALENDAR_VIEW (week_view))); e_cal_component_set_dtend (comp, &date); + /* Editor default in week/month view */ + e_cal_component_set_transparency (comp, E_CAL_COMPONENT_TRANSP_TRANSPARENT); + e_cal_component_set_categories ( comp, e_calendar_view_get_default_category (E_CALENDAR_VIEW (week_view))); |