aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs/task-editor.c')
-rw-r--r--calendar/gui/dialogs/task-editor.c72
1 files changed, 36 insertions, 36 deletions
diff --git a/calendar/gui/dialogs/task-editor.c b/calendar/gui/dialogs/task-editor.c
index 339fdca80d..5c796df3a3 100644
--- a/calendar/gui/dialogs/task-editor.c
+++ b/calendar/gui/dialogs/task-editor.c
@@ -51,9 +51,9 @@ struct _TaskEditorPrivate {
static void task_editor_class_init (TaskEditorClass *class);
static void task_editor_init (TaskEditor *te);
-static void task_editor_set_cal_client (CompEditor *editor, CalClient *client);
-static void task_editor_edit_comp (CompEditor *editor, CalComponent *comp);
-static gboolean task_editor_send_comp (CompEditor *editor, CalComponentItipMethod method);
+static void task_editor_set_e_cal (CompEditor *editor, ECal *client);
+static void task_editor_edit_comp (CompEditor *editor, ECalComponent *comp);
+static gboolean task_editor_send_comp (CompEditor *editor, ECalComponentItipMethod method);
static void task_editor_finalize (GObject *object);
static void assign_task_cmd (GtkWidget *widget, gpointer data);
@@ -101,7 +101,7 @@ task_editor_class_init (TaskEditorClass *klass)
parent_class = g_type_class_ref(TYPE_COMP_EDITOR);
- editor_class->set_cal_client = task_editor_set_cal_client;
+ editor_class->set_e_cal = task_editor_set_e_cal;
editor_class->edit_comp = task_editor_edit_comp;
editor_class->send_comp = task_editor_send_comp;
@@ -119,9 +119,9 @@ set_menu_sens (TaskEditor *te)
existing = comp_editor_get_existing_org (COMP_EDITOR (te));
user = comp_editor_get_user_org (COMP_EDITOR (te));
- cal_client_is_read_only (comp_editor_get_cal_client (COMP_EDITOR (te)), &read_only, NULL);
+ e_cal_is_read_only (comp_editor_get_e_cal (COMP_EDITOR (te)), &read_only, NULL);
- sens = cal_client_get_static_capability (comp_editor_get_cal_client (COMP_EDITOR (te)),
+ sens = e_cal_get_static_capability (comp_editor_get_e_cal (COMP_EDITOR (te)),
CAL_STATIC_CAPABILITY_NO_TASK_ASSIGNMENT)
|| priv->assignment_shown || read_only;
comp_editor_set_ui_prop (COMP_EDITOR (te),
@@ -180,7 +180,7 @@ task_editor_init (TaskEditor *te)
}
TaskEditor *
-task_editor_construct (TaskEditor *te, CalClient *client)
+task_editor_construct (TaskEditor *te, ECal *client)
{
TaskEditorPrivate *priv;
@@ -207,7 +207,7 @@ task_editor_construct (TaskEditor *te, CalClient *client)
COMP_EDITOR_PAGE (priv->meet_page),
_("Assignment"));
- comp_editor_set_cal_client (COMP_EDITOR (te), client);
+ comp_editor_set_e_cal (COMP_EDITOR (te), client);
comp_editor_merge_ui (COMP_EDITOR (te), "evolution-task-editor.xml", verbs, NULL);
@@ -218,7 +218,7 @@ task_editor_construct (TaskEditor *te, CalClient *client)
}
static void
-task_editor_set_cal_client (CompEditor *editor, CalClient *client)
+task_editor_set_e_cal (CompEditor *editor, ECal *client)
{
TaskEditor *te;
TaskEditorPrivate *priv;
@@ -226,19 +226,19 @@ task_editor_set_cal_client (CompEditor *editor, CalClient *client)
te = TASK_EDITOR (editor);
priv = te->priv;
- e_meeting_store_set_cal_client (priv->model, client);
+ e_meeting_store_set_e_cal (priv->model, client);
- if (parent_class->set_cal_client)
- parent_class->set_cal_client (editor, client);
+ if (parent_class->set_e_cal)
+ parent_class->set_e_cal (editor, client);
}
static void
-task_editor_edit_comp (CompEditor *editor, CalComponent *comp)
+task_editor_edit_comp (CompEditor *editor, ECalComponent *comp)
{
TaskEditor *te;
TaskEditorPrivate *priv;
- CalComponentOrganizer organizer;
- CalClient *client;
+ ECalComponentOrganizer organizer;
+ ECal *client;
GSList *attendees = NULL;
te = TASK_EDITOR (editor);
@@ -249,11 +249,11 @@ task_editor_edit_comp (CompEditor *editor, CalComponent *comp)
if (parent_class->edit_comp)
parent_class->edit_comp (editor, comp);
- client = comp_editor_get_cal_client (COMP_EDITOR (editor));
+ client = comp_editor_get_e_cal (COMP_EDITOR (editor));
/* Get meeting related stuff */
- cal_component_get_organizer (comp, &organizer);
- cal_component_get_attendee_list (comp, &attendees);
+ e_cal_component_get_organizer (comp, &organizer);
+ e_cal_component_get_attendee_list (comp, &attendees);
/* Clear things up */
e_meeting_store_remove_all_attendees (priv->model);
@@ -271,10 +271,10 @@ task_editor_edit_comp (CompEditor *editor, CalComponent *comp)
_("Assignment"));
for (l = attendees; l != NULL; l = l->next) {
- CalComponentAttendee *ca = l->data;
+ ECalComponentAttendee *ca = l->data;
EMeetingAttendee *ia;
- ia = E_MEETING_ATTENDEE (e_meeting_attendee_new_from_cal_component_attendee (ca));
+ ia = E_MEETING_ATTENDEE (e_meeting_attendee_new_from_e_cal_component_attendee (ca));
/* If we aren't the organizer or the attendee is just delegating, don't allow editing */
if (!comp_editor_get_user_org (editor) || e_meeting_attendee_is_set_delto (ia))
e_meeting_attendee_set_edit_level (ia, E_MEETING_ATTENDEE_EDIT_NONE);
@@ -300,7 +300,7 @@ task_editor_edit_comp (CompEditor *editor, CalComponent *comp)
e_meeting_attendee_set_edit_level (ia, E_MEETING_ATTENDEE_EDIT_STATUS);
}
g_object_unref(it);
- } else if (cal_client_get_organizer_must_attend (client)) {
+ } else if (e_cal_get_organizer_must_attend (client)) {
EMeetingAttendee *ia;
ia = e_meeting_store_find_attendee (priv->model, organizer.value, &row);
@@ -310,7 +310,7 @@ task_editor_edit_comp (CompEditor *editor, CalComponent *comp)
priv->assignment_shown = TRUE;
}
- cal_component_free_attendee_list (attendees);
+ e_cal_component_free_attendee_list (attendees);
set_menu_sens (te);
comp_editor_set_needs_send (COMP_EDITOR (te), priv->assignment_shown && itip_organizer_is_user (comp, client));
@@ -319,26 +319,26 @@ task_editor_edit_comp (CompEditor *editor, CalComponent *comp)
}
static gboolean
-task_editor_send_comp (CompEditor *editor, CalComponentItipMethod method)
+task_editor_send_comp (CompEditor *editor, ECalComponentItipMethod method)
{
TaskEditor *te = TASK_EDITOR (editor);
TaskEditorPrivate *priv;
- CalComponent *comp = NULL;
+ ECalComponent *comp = NULL;
priv = te->priv;
/* Don't cancel more than once or when just publishing */
- if (method == CAL_COMPONENT_METHOD_PUBLISH ||
- method == CAL_COMPONENT_METHOD_CANCEL)
+ if (method == E_CAL_COMPONENT_METHOD_PUBLISH ||
+ method == E_CAL_COMPONENT_METHOD_CANCEL)
goto parent;
comp = meeting_page_get_cancel_comp (priv->meet_page);
if (comp != NULL) {
- CalClient *client;
+ ECal *client;
gboolean result;
- client = e_meeting_store_get_cal_client (priv->model);
- result = itip_send_comp (CAL_COMPONENT_METHOD_CANCEL, comp, client, NULL);
+ client = e_meeting_store_get_e_cal (priv->model);
+ result = itip_send_comp (E_CAL_COMPONENT_METHOD_CANCEL, comp, client, NULL);
g_object_unref((comp));
if (!result)
@@ -379,7 +379,7 @@ task_editor_finalize (GObject *object)
/**
* task_editor_new:
- * @client: a CalClient
+ * @client: a ECal
*
* Creates a new event editor dialog.
*
@@ -387,7 +387,7 @@ task_editor_finalize (GObject *object)
* editor could not be created.
**/
TaskEditor *
-task_editor_new (CalClient *client)
+task_editor_new (ECal *client)
{
TaskEditor *te;
@@ -439,19 +439,19 @@ refresh_task_cmd (GtkWidget *widget, gpointer data)
{
TaskEditor *te = TASK_EDITOR (data);
- comp_editor_send_comp (COMP_EDITOR (te), CAL_COMPONENT_METHOD_REFRESH);
+ comp_editor_send_comp (COMP_EDITOR (te), E_CAL_COMPONENT_METHOD_REFRESH);
}
static void
cancel_task_cmd (GtkWidget *widget, gpointer data)
{
TaskEditor *te = TASK_EDITOR (data);
- CalComponent *comp;
+ ECalComponent *comp;
comp = comp_editor_get_current_comp (COMP_EDITOR (te));
if (cancel_component_dialog ((GtkWindow *) te,
- comp_editor_get_cal_client (COMP_EDITOR (te)), comp, FALSE)) {
- comp_editor_send_comp (COMP_EDITOR (te), CAL_COMPONENT_METHOD_CANCEL);
+ comp_editor_get_e_cal (COMP_EDITOR (te)), comp, FALSE)) {
+ comp_editor_send_comp (COMP_EDITOR (te), E_CAL_COMPONENT_METHOD_CANCEL);
comp_editor_delete_comp (COMP_EDITOR (te));
}
}
@@ -462,7 +462,7 @@ forward_cmd (GtkWidget *widget, gpointer data)
TaskEditor *te = TASK_EDITOR (data);
if (comp_editor_save_comp (COMP_EDITOR (te), TRUE))
- comp_editor_send_comp (COMP_EDITOR (te), CAL_COMPONENT_METHOD_PUBLISH);
+ comp_editor_send_comp (COMP_EDITOR (te), E_CAL_COMPONENT_METHOD_PUBLISH);
}
static void