diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2007-11-15 06:04:21 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2007-11-15 06:04:21 +0800 |
commit | 9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91 (patch) | |
tree | 2e1e96f33404781354c422a7e9beaf458ebeb655 /plugins/mail-to-task/mail-to-task.c | |
parent | 7e8f8bb9e5167b0219b48ab3e8062080d3740b0a (diff) | |
download | gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.gz gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.zst gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.zip |
** Remove trailing whitespace from source code.
2007-11-14 Matthew Barnes <mbarnes@redhat.com>
** Remove trailing whitespace from source code.
svn path=/trunk/; revision=34537
Diffstat (limited to 'plugins/mail-to-task/mail-to-task.c')
-rw-r--r-- | plugins/mail-to-task/mail-to-task.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c index 6d4f0c4735..2d1968073d 100644 --- a/plugins/mail-to-task/mail-to-task.c +++ b/plugins/mail-to-task/mail-to-task.c @@ -84,11 +84,11 @@ set_attendees (ECalComponent *comp, CamelMimeMessage *message) char *temp; ca = g_new0 (ECalComponentAttendee, 1); - + temp = g_strconcat ("mailto:", addr, NULL); ca->value = temp; to_free = g_slist_prepend (to_free, temp); - + ca->cn = name; /* FIXME: missing many fields */ @@ -103,7 +103,7 @@ set_attendees (ECalComponent *comp, CamelMimeMessage *message) g_free (l->data); g_slist_foreach (to_free, (GFunc) g_free, NULL); - + g_slist_free (to_free); g_slist_free (attendees); } @@ -151,14 +151,14 @@ set_description (ECalComponent *comp, CamelMimeMessage *message) /* convert to UTF-8 string */ if (str && content->mime_type->params && content->mime_type->params->value) { - convert_str = g_convert (str, strlen (str), + convert_str = g_convert (str, strlen (str), "UTF-8", content->mime_type->params->value, &bytes_read, &bytes_written, NULL); } if (convert_str) text.value = convert_str; - else + else text.value = str; text.altrep = NULL; sl.next = NULL; @@ -193,7 +193,7 @@ set_organizer (ECalComponent *comp, CamelMimeMessage *message) organizer.value = temp; organizer.cn = name; e_cal_component_set_organizer (comp, &organizer); - + g_free (temp); } @@ -244,7 +244,7 @@ set_attachments (ECal *client, ECalComponent *comp, CamelMimeMessage *message) list = g_slist_append (list, g_strdup (uri)); g_free (uri); } - + g_free (tmp); g_free (filename); g_free (path); @@ -255,7 +255,7 @@ set_attachments (ECal *client, ECalComponent *comp, CamelMimeMessage *message) e_cal_component_set_attachment_list (comp, list); } -static gboolean +static gboolean do_mail_to_task (AsyncData *data) { ECal *client = data->client; @@ -265,7 +265,7 @@ do_mail_to_task (AsyncData *data) /* open the task client */ if (e_cal_open (client, FALSE, NULL)) { int i; - + for (i = 0; i < (uids ? uids->len : 0); i++) { CamelMimeMessage *message; ECalComponent *comp; @@ -307,18 +307,18 @@ do_mail_to_task (AsyncData *data) set_attachments (client, comp, message); icalcomp = e_cal_component_get_icalcomponent (comp); - + icalprop = icalproperty_new_x ("1"); icalproperty_set_x_name (icalprop, "X-EVOLUTION-MOVE-CALENDAR"); icalcomponent_add_property (icalcomp, icalprop); - + /* save the task to the selected source */ e_cal_create_object (client, icalcomp, NULL, NULL); g_object_unref (comp); } } - + /* free memory */ g_object_unref (data->client); g_ptr_array_free (data->uids, TRUE); @@ -333,7 +333,7 @@ void org_gnome_mail_to_task (void *ep, EMPopupTargetSelect *t); void org_gnome_mail_to_task_menu (EPlugin *ep, EMMenuTargetSelect *target); static void -copy_uids (char *uid, GPtrArray *uid_array) +copy_uids (char *uid, GPtrArray *uid_array) { g_ptr_array_add (uid_array, g_strdup (uid)); } @@ -391,7 +391,7 @@ convert_to_task (GPtrArray *uid_array, struct _CamelFolder *folder, EMFolderView GtkWidget *dialog; GConfClient *conf_client; ESourceList *source_list; - + /* ask the user which tasks list to save to */ conf_client = gconf_client_get_default (); source_list = e_source_list_new_for_gconf (conf_client, "/apps/evolution/tasks/sources"); @@ -408,11 +408,11 @@ convert_to_task (GPtrArray *uid_array, struct _CamelFolder *folder, EMFolderView AsyncData *data = NULL; GThread *thread = NULL; GError *error = NULL; - + client = auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_TODO); if (!client) { char *uri = e_source_get_uri (source); - + g_warning ("Could not create the client: %s \n", uri); g_free (uri); @@ -421,11 +421,11 @@ convert_to_task (GPtrArray *uid_array, struct _CamelFolder *folder, EMFolderView gtk_widget_destroy (dialog); return; } - + /* Fill the elements in AsynData */ data = g_new0 (AsyncData, 1); data->client = client; - data->folder = folder; + data->folder = folder; data->uids = uid_array; if (uid_array->len == 1) @@ -445,7 +445,7 @@ convert_to_task (GPtrArray *uid_array, struct _CamelFolder *folder, EMFolderView g_object_unref (conf_client); g_object_unref (source_list); gtk_widget_destroy (dialog); - + } void @@ -454,7 +454,7 @@ org_gnome_mail_to_task (void *ep, EMPopupTargetSelect *t) GPtrArray *uid_array = NULL; if (t->uids->len > 0) { - /* FIXME Some how in the thread function the values inside t->uids gets freed + /* FIXME Some how in the thread function the values inside t->uids gets freed and are corrupted which needs to be fixed, this is sought of work around fix for the gui inresponsiveness */ uid_array = g_ptr_array_new (); @@ -471,7 +471,7 @@ void org_gnome_mail_to_task_menu (EPlugin *ep, EMMenuTargetSelect *t) GPtrArray *uid_array = NULL; if (t->uids->len > 0) { - /* FIXME Some how in the thread function the values inside t->uids gets freed + /* FIXME Some how in the thread function the values inside t->uids gets freed and are corrupted which needs to be fixed, this is sought of work around fix for the gui inresponsiveness */ uid_array = g_ptr_array_new (); |