[evolution-ews/gnome-3-6] Coding style and whitespace cleanup.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews/gnome-3-6] Coding style and whitespace cleanup.
- Date: Sun, 11 Nov 2012 14:59:40 +0000 (UTC)
commit 2c3753787d69a649d0c0cd6c8ecb0a1263eee50b
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Nov 11 09:55:53 2012 -0500
Coding style and whitespace cleanup.
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 ++++++++++++----------
6 files changed, 34 insertions(+), 27 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 6583577..e19dd48 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -2891,7 +2891,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;
@@ -3287,10 +3287,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;
@@ -3298,7 +3298,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,
@@ -3327,7 +3328,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);
@@ -3359,7 +3361,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;
@@ -3399,7 +3401,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",
@@ -3407,7 +3410,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,
@@ -3462,7 +3466,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 3715049..d1b4781 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 48248da..9d01c92 100644
--- a/src/camel/camel-ews-store.c
+++ b/src/camel/camel-ews-store.c
@@ -1493,7 +1493,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 81f5f0e..3cba759 100644
--- a/src/collection/e-ews-backend.c
+++ b/src/collection/e-ews-backend.c
@@ -402,7 +402,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 64c5c30..732a180 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -1972,19 +1972,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;
}
@@ -2185,14 +2187,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;
@@ -2206,7 +2208,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;
}
@@ -2442,9 +2444,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);
}
@@ -3132,7 +3134,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]