From 744563a9a2b6841881f7d53d2d6ef163b27cb135 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Mon, 4 Jul 2005 09:37:24 +0000 Subject: Set the new item flags while creating new meetings from other components. Check the new item flags while creating the scheduling page. svn path=/trunk/; revision=29625 --- calendar/ChangeLog | 7 +++++++ calendar/gui/calendar-component.c | 2 +- calendar/gui/dialogs/event-editor.c | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 1d22200974..67e31f03d9 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2005-07-04 Chenthill Palanisamy + + * gui/calendar-component.c: (create_new_event): Set + the new item flag. + * gui/dialogs/event-editor.c: (event_editor_construct): + Check the new item flag and create the scheduling page. + 2005-07-04 Srinivasa Ragavan * gui/dialogs/meeting-page.c: (meeting_page_construct) Added diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index 3ec9537fcb..f747370004 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -1196,7 +1196,7 @@ create_new_event (CalendarComponent *calendar_component, CalendarComponentView * EventEditor *editor; CompEditorFlags flags; - flags |= COMP_EDITOR_MEETING; + flags |= COMP_EDITOR_MEETING | COMP_EDITOR_NEW_ITEM; comp = cal_comp_event_new_with_current_time (ecal, is_allday); editor = event_editor_new (ecal, flags); e_cal_component_commit_sequence (comp); diff --git a/calendar/gui/dialogs/event-editor.c b/calendar/gui/dialogs/event-editor.c index 519c9f4447..1c15bc1f53 100644 --- a/calendar/gui/dialogs/event-editor.c +++ b/calendar/gui/dialogs/event-editor.c @@ -155,7 +155,7 @@ event_editor_construct (EventEditor *ee, ECal *client) event_page_show_options (priv->event_page); comp_editor_set_group_item (COMP_EDITOR (ee), TRUE); - if ((flags & COMP_EDITOR_USER_ORG) || (flags & COMP_EDITOR_DELEGATE)) { + if ((flags & COMP_EDITOR_USER_ORG) || (flags & COMP_EDITOR_DELEGATE)|| (flags & COMP_EDITOR_NEW_ITEM)) { priv->sched_page = schedule_page_new (priv->model); g_object_ref (priv->sched_page); gtk_object_sink (GTK_OBJECT (priv->sched_page)); -- cgit