[evolution-ews] Coding style and whitespace cleanup.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Coding style and whitespace cleanup.
- Date: Sun, 11 Nov 2012 14:59:36 +0000 (UTC)
commit 2516e2f54dfbced17faacd0800e25f0dcc105827
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Nov 11 09:55:53 2012 -0500
Coding style and whitespace cleanup.
src/addressbook/e-book-backend-ews.c | 2 +-
src/calendar/e-cal-backend-ews.c | 27 ++++++++++++++++-----------
src/camel/camel-ews-folder.c | 4 ++--
src/camel/camel-ews-store.c | 2 +-
src/camel/camel-ews-utils.c | 4 ++--
src/collection/e-ews-backend.c | 2 +-
src/server/e-ews-connection.c | 22 ++++++++++++----------
7 files changed, 35 insertions(+), 28 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-ews.c b/src/addressbook/e-book-backend-ews.c
index e26ff5e..ff27bd0 100644
--- a/src/addressbook/e-book-backend-ews.c
+++ b/src/addressbook/e-book-backend-ews.c
@@ -1826,7 +1826,7 @@ ews_replace_gal_in_db (EBookBackendEws *cbews,
e_book_backend_sqlitedb_remove_contacts (priv->summary, priv->folder_id, uids, NULL);
g_slist_free_full (uids, g_free);
}
-
+
ews_remove_attachments (priv->attachment_dir);
}
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 15531ac..5c61f66 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -2888,7 +2888,7 @@ ews_get_attachments (ECalBackendEws *cbews,
static void
add_item_to_cache (ECalBackendEws *cbews,
EEwsItem *item,
- GHashTable *ex_to_smtp)
+ GHashTable *ex_to_smtp)
{
ECalBackendEwsPrivate *priv;
icalcomponent_kind kind;
@@ -3284,10 +3284,10 @@ ews_refreshing_dec (ECalBackendEws *cbews)
static void
ews_cal_sync_get_items_sync (ECalBackendEws *cbews,
- const GSList *item_ids,
- const gchar *default_props,
- const gchar *additional_props,
- GHashTable *ex_to_smtp)
+ const GSList *item_ids,
+ const gchar *default_props,
+ const gchar *additional_props,
+ GHashTable *ex_to_smtp)
{
ECalBackendEwsPrivate *priv;
GSList *items = NULL, *l;
@@ -3295,7 +3295,8 @@ ews_cal_sync_get_items_sync (ECalBackendEws *cbews,
priv = cbews->priv;
- e_ews_connection_get_items_sync (priv->cnc,
+ e_ews_connection_get_items_sync (
+ priv->cnc,
EWS_PRIORITY_MEDIUM,
item_ids,
default_props,
@@ -3324,7 +3325,8 @@ ews_cal_sync_get_items_sync (ECalBackendEws *cbews,
modified_occurrences = e_ews_item_get_modified_occurrences (item);
if (modified_occurrences) {
- ews_cal_sync_get_items_sync (cbews, modified_occurrences,
+ ews_cal_sync_get_items_sync (
+ cbews, modified_occurrences,
"IdOnly",
"item:Attachments item:HasAttachments item:MimeContent calendar:TimeZone calendar:UID calendar:Resources calendar:ModifiedOccurrences calendar:RequiredAttendees calendar:OptionalAttendees",
ex_to_smtp);
@@ -3356,7 +3358,7 @@ cal_backend_ews_process_folder_items (ECalBackendEws *cbews,
GSList *items_created,
GSList *items_updated,
GSList *items_deleted,
- GHashTable *ex_to_smtp)
+ GHashTable *ex_to_smtp)
{
ECalBackendEwsPrivate *priv;
GSList *l[2], *m, *cal_item_ids = NULL, *task_item_ids = NULL;
@@ -3396,7 +3398,8 @@ cal_backend_ews_process_folder_items (ECalBackendEws *cbews,
e_cal_backend_store_thaw_changes (priv->store);
if (cal_item_ids) {
- ews_cal_sync_get_items_sync (cbews,
+ ews_cal_sync_get_items_sync (
+ cbews,
cal_item_ids,
"IdOnly",
"item:Attachments item:HasAttachments item:MimeContent calendar:TimeZone calendar:UID calendar:Resources calendar:ModifiedOccurrences calendar:RequiredAttendees calendar:OptionalAttendees",
@@ -3404,7 +3407,8 @@ cal_backend_ews_process_folder_items (ECalBackendEws *cbews,
}
if (task_item_ids) {
- ews_cal_sync_get_items_sync (cbews,
+ ews_cal_sync_get_items_sync (
+ cbews,
task_item_ids,
"AllProperties",
NULL,
@@ -3459,7 +3463,8 @@ ews_start_sync_thread (gpointer data)
e_cal_backend_notify_readonly (E_CAL_BACKEND (cbews), FALSE);
if (error == NULL) {
- cal_backend_ews_process_folder_items (cbews, new_sync_state,
+ cal_backend_ews_process_folder_items (
+ cbews, new_sync_state,
items_created, items_updated, items_deleted,
ex_to_smtp);
diff --git a/src/camel/camel-ews-folder.c b/src/camel/camel-ews-folder.c
index f459108..90f342b 100644
--- a/src/camel/camel-ews-folder.c
+++ b/src/camel/camel-ews-folder.c
@@ -589,8 +589,8 @@ ews_folder_get_message_sync (CamelFolder *folder,
static CamelMimeMessage *
ews_folder_get_message_cached (CamelFolder *folder,
- const gchar *message_uid,
- GCancellable *cancellable)
+ const gchar *message_uid,
+ GCancellable *cancellable)
{
return camel_ews_folder_get_message_from_cache ((CamelEwsFolder *) folder, message_uid, cancellable, NULL);
}
diff --git a/src/camel/camel-ews-store.c b/src/camel/camel-ews-store.c
index c9aa5e7..e88f398 100644
--- a/src/camel/camel-ews-store.c
+++ b/src/camel/camel-ews-store.c
@@ -1495,7 +1495,7 @@ ews_store_unsubscribe_folder_sync (CamelSubscribable *subscribable,
gboolean
camel_ews_store_connected (CamelEwsStore *ews_store,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
diff --git a/src/camel/camel-ews-utils.c b/src/camel/camel-ews-utils.c
index 26d42d4..89c9664 100644
--- a/src/camel/camel-ews-utils.c
+++ b/src/camel/camel-ews-utils.c
@@ -662,7 +662,7 @@ void
camel_ews_utils_sync_created_items (CamelEwsFolder *ews_folder,
EEwsConnection *cnc,
GSList *items_created,
- GCancellable *cancellable)
+ GCancellable *cancellable)
{
CamelFolder *folder;
CamelFolderChangeInfo *ci;
@@ -793,7 +793,7 @@ camel_ews_utils_get_host_name (CamelSettings *settings)
host = g_strdup (url->host);
camel_url_free (url);
}
-
+
if (!host || !*host) {
g_free (host);
host = camel_network_settings_dup_host (CAMEL_NETWORK_SETTINGS (settings));
diff --git a/src/collection/e-ews-backend.c b/src/collection/e-ews-backend.c
index aaa0d7f..774881b 100644
--- a/src/collection/e-ews-backend.c
+++ b/src/collection/e-ews-backend.c
@@ -405,7 +405,7 @@ ews_backend_add_gal_source (EEwsBackend *backend)
e_source_set_display_name (source, display_name);
/* do not re-setup previously saved ESource,
- that would rewrite user's choice */
+ * that would rewrite user's choice */
if (!e_source_has_extension (source, E_SOURCE_EXTENSION_EWS_FOLDER)) {
extension_name = E_SOURCE_EXTENSION_ADDRESS_BOOK;
backend_extension = e_source_get_extension (source, extension_name);
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index fbbda64..9a49017 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -1976,19 +1976,21 @@ static void post_restarted (SoupMessage *msg, gpointer data)
static SoupMessage *
e_ews_get_msg_for_url (const gchar *url,
xmlOutputBuffer *buf,
- GError **error)
+ GError **error)
{
SoupMessage *msg;
if (url == NULL) {
- g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
+ g_set_error_literal (
+ error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
_("URL cannot be NULL"));
return NULL;
}
msg = soup_message_new (buf != NULL ? "POST" : "GET", url);
if (!msg) {
- g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
+ g_set_error (
+ error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
_("URL '%s' is not valid"), url);
return NULL;
}
@@ -2189,14 +2191,14 @@ e_ews_autodiscover_ws_url (CamelEwsSettings *settings,
g_clear_error (&error);
/* each request holds a reference to 'simple',
- thus remove one, to have it actually freed */
+ * thus remove one, to have it actually freed */
g_object_unref (simple);
}
}
static gboolean
has_suffix_icmp (const gchar *text,
- const gchar *suffix)
+ const gchar *suffix)
{
gint ii, tlen, slen;
@@ -2210,7 +2212,7 @@ has_suffix_icmp (const gchar *text,
return FALSE;
for (ii = 0; ii < slen; ii++) {
- if (g_ascii_tolower (text[tlen - ii - 1]) !=
+ if (g_ascii_tolower (text[tlen - ii - 1]) !=
g_ascii_tolower (suffix[slen - ii - 1]))
break;
}
@@ -2446,9 +2448,9 @@ oal_response_cb (SoupSession *soup_session,
exit:
g_simple_async_result_complete_in_idle (simple);
/* This is run in cnc->priv->soup_thread, and the cnc is held by simple, thus
- for cases when the complete_in_idle is finished before the unref call, when
- the cnc will be left with the last reference and thus cannot join the soup_thread
- while still in it, the unref is done in a dedicated thread. */
+ * for cases when the complete_in_idle is finished before the unref call, when
+ * the cnc will be left with the last reference and thus cannot join the soup_thread
+ * while still in it, the unref is done in a dedicated thread. */
ews_unref_in_thread (simple);
}
@@ -3136,7 +3138,7 @@ e_ews_connection_sync_folder_items_sync (EEwsConnection *cnc,
const gchar *default_props,
const gchar *additional_props,
guint max_entries,
- gchar **new_sync_state,
+ gchar **new_sync_state,
gboolean *includes_last_item,
GSList **items_created,
GSList **items_updated,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]