diff options
author | Harish Krishnaswamy <kharish@src.gnome.org> | 2004-10-20 00:20:07 +0800 |
---|---|---|
committer | Harish Krishnaswamy <kharish@src.gnome.org> | 2004-10-20 00:20:07 +0800 |
commit | 87abd6ffee84ee9dfa54e1966d23168e6629a3f8 (patch) | |
tree | e73ac7fc9c63db70ba73f5fff7fa9e6d60edf681 /calendar/gui/dialogs | |
parent | da657db10113fc2fbb1b0b17f8482899f2abf772 (diff) | |
download | gsoc2013-evolution-87abd6ffee84ee9dfa54e1966d23168e6629a3f8.tar.gz gsoc2013-evolution-87abd6ffee84ee9dfa54e1966d23168e6629a3f8.tar.zst gsoc2013-evolution-87abd6ffee84ee9dfa54e1966d23168e6629a3f8.zip |
Use e_cal_component_has_attendees to test if it is a meeting. By default,
* gui/comp-editor-factory.c: (edit_existing):
Use e_cal_component_has_attendees to test if it is a meeting.
* gui/dialogs/event-editor.c: (event_editor_init):
By default, the event is not a meeting.
(event_editor_construct): Do not add the invitation, scheduling pages
to the editor if it is not a meeting.
* gui/e-day-view.c: (e_day_view_on_event_double_click):
check the icalproperty to test if the event is a meeting.
svn path=/trunk/; revision=27628
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/event-editor.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/calendar/gui/dialogs/event-editor.c b/calendar/gui/dialogs/event-editor.c index d520fd809b..886a4ddea8 100644 --- a/calendar/gui/dialogs/event-editor.c +++ b/calendar/gui/dialogs/event-editor.c @@ -120,6 +120,7 @@ event_editor_init (EventEditor *ee) priv->model = E_MEETING_STORE (e_meeting_store_new ()); priv->meeting_shown = TRUE; priv->updating = FALSE; + priv->is_meeting = FALSE; } EventEditor * @@ -145,20 +146,21 @@ event_editor_construct (EventEditor *ee, ECal *client) COMP_EDITOR_PAGE (priv->recur_page), _("Recurrence")); - priv->sched_page = schedule_page_new (priv->model); - g_object_ref (priv->sched_page); - gtk_object_sink (GTK_OBJECT (priv->sched_page)); - comp_editor_append_page (COMP_EDITOR (ee), - COMP_EDITOR_PAGE (priv->sched_page), - _("Scheduling")); - - priv->meet_page = meeting_page_new (priv->model, client); - g_object_ref (priv->meet_page); - gtk_object_sink (GTK_OBJECT (priv->meet_page)); - comp_editor_append_page (COMP_EDITOR (ee), - COMP_EDITOR_PAGE (priv->meet_page), - _("Invitations")); - + if (priv->is_meeting) { + priv->sched_page = schedule_page_new (priv->model); + g_object_ref (priv->sched_page); + gtk_object_sink (GTK_OBJECT (priv->sched_page)); + comp_editor_append_page (COMP_EDITOR (ee), + COMP_EDITOR_PAGE (priv->sched_page), + _("Scheduling")); + + priv->meet_page = meeting_page_new (priv->model, client); + g_object_ref (priv->meet_page); + gtk_object_sink (GTK_OBJECT (priv->meet_page)); + comp_editor_append_page (COMP_EDITOR (ee), + COMP_EDITOR_PAGE (priv->meet_page), + _("Invitations")); + } comp_editor_set_e_cal (COMP_EDITOR (ee), client); init_widgets (ee); |