aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/calendar-component.c2
-rw-r--r--calendar/gui/dialogs/event-editor.c2
3 files changed, 9 insertions, 2 deletions
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 <pchenthill@novell.com>
+
+ * 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 <sragavan@novell.com>
* 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));