[evolution-data-server] Coding style and whitespace cleanups.
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-data-server] Coding style and whitespace cleanups.
- Date: Sun, 26 Jul 2009 12:20:13 +0000 (UTC)
commit 3e5be930ac83c06420d996c47d750ee906f042b4
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Jul 26 08:19:47 2009 -0400
Coding style and whitespace cleanups.
.../groupwise/e-cal-backend-groupwise-utils.c | 2 +-
.../backends/groupwise/e-cal-backend-groupwise.c | 11 +++++------
calendar/backends/http/e-cal-backend-http.c | 4 ++--
calendar/libedata-cal/e-cal-backend-file-store.c | 20 ++++++++++----------
calendar/libedata-cal/e-cal-backend-store.c | 2 +-
calendar/libedata-cal/e-cal-backend-store.h | 20 ++++++++++----------
camel/providers/groupwise/camel-groupwise-utils.c | 4 ++--
7 files changed, 31 insertions(+), 32 deletions(-)
---
diff --git a/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c b/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c
index 6aaef9f..c2484e6 100644
--- a/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c
+++ b/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c
@@ -1093,7 +1093,7 @@ e_gw_item_to_cal_component (EGwItem *item, ECalBackendGroupwise *cbgw)
/* summary */
text.value = e_gw_item_get_subject (item);
text.altrep = NULL;
-
+
if (text.value)
e_cal_component_set_summary (comp, &text);
diff --git a/calendar/backends/groupwise/e-cal-backend-groupwise.c b/calendar/backends/groupwise/e-cal-backend-groupwise.c
index 38f136c..5c1d24f 100644
--- a/calendar/backends/groupwise/e-cal-backend-groupwise.c
+++ b/calendar/backends/groupwise/e-cal-backend-groupwise.c
@@ -579,13 +579,13 @@ get_deltas (gpointer handle)
if (calid->recur_key && calid->start_date) {
gchar *rid = NULL;
-
+
icaltimetype tt = icaltime_from_string (calid->start_date);
-
+
tt = icaltime_convert_to_zone (tt, priv->default_zone);
icaltime_set_timezone (&tt, priv->default_zone);
rid = icaltime_as_ical_string_r (tt);
-
+
id->uid = g_strdup (calid->recur_key);
id->rid = rid;
} else
@@ -609,7 +609,7 @@ get_deltas (gpointer handle)
comp = e_cal_backend_store_get_component (store, id->uid, id->rid);
- if (!comp)
+ if (!comp)
continue;
icalcomp = e_cal_component_get_icalcomponent (comp);
@@ -1372,7 +1372,7 @@ e_cal_backend_groupwise_open (ECalBackendSync *backend, EDataCal *cal, gboolean
if (!priv->store) {
const gchar *uri = e_cal_backend_get_uri (E_CAL_BACKEND (cbgw));
-
+
/* remove the old cache while migrating to ECalBackendStore */
e_cal_backend_cache_remove (uri, source_type);
priv->store = (ECalBackendStore *) e_cal_backend_file_store_new (uri, source_type);
@@ -1829,7 +1829,6 @@ e_cal_backend_groupwise_compute_changes (ECalBackendGroupwise *cbgw, const gchar
GList *i, *list = NULL;
gchar *unescaped_uri;
-
/* FIXME Will this always work? */
unescaped_uri = g_uri_unescape_string (cbgw->priv->uri, "");
filename = g_strdup_printf ("%s-%s.db", unescaped_uri, change_id);
diff --git a/calendar/backends/http/e-cal-backend-http.c b/calendar/backends/http/e-cal-backend-http.c
index 8d822ac..7e7320d 100644
--- a/calendar/backends/http/e-cal-backend-http.c
+++ b/calendar/backends/http/e-cal-backend-http.c
@@ -250,7 +250,7 @@ empty_cache (ECalBackendHttp *cbhttp)
{
ECalBackendHttpPrivate *priv;
GSList *comps, *l;
-
+
priv = cbhttp->priv;
if (!priv->store)
@@ -649,7 +649,7 @@ e_cal_backend_http_open (ECalBackendSync *backend, EDataCal *cal, gboolean only_
source_type = E_CAL_SOURCE_TYPE_JOURNAL;
break;
}
-
+
/* remove the old cache while migrating to ECalBackendStore */
e_cal_backend_cache_remove (uri, source_type);
priv->store = (ECalBackendStore *) e_cal_backend_file_store_new (uri, source_type);
diff --git a/calendar/libedata-cal/e-cal-backend-file-store.c b/calendar/libedata-cal/e-cal-backend-file-store.c
index b3a28a4..da32f56 100644
--- a/calendar/libedata-cal/e-cal-backend-file-store.c
+++ b/calendar/libedata-cal/e-cal-backend-file-store.c
@@ -240,7 +240,7 @@ e_cal_backend_file_store_has_component (ECalBackendStore *store, const gchar *ui
} else
ret_val = TRUE;
-end:
+end:
g_static_rw_lock_reader_unlock (&priv->lock);
return ret_val;
}
@@ -377,7 +377,7 @@ e_cal_backend_file_store_put_key_value (ECalBackendStore *store, const gchar *ke
priv = GET_PRIVATE (fstore);
g_static_rw_lock_writer_lock (&priv->lock);
-
+
if (e_file_cache_get_object (priv->keys_cache, key))
ret_val = e_file_cache_replace_object (priv->keys_cache, key, value);
else
@@ -416,7 +416,7 @@ e_cal_backend_file_store_set_default_timezone (ECalBackendStore *store, const ic
ECalBackendFileStorePrivate *priv;
const gchar *tzid;
icaltimezone *copy;
- const char *key = "default-zone";
+ const gchar *key = "default-zone";
gboolean ret_val;
priv = GET_PRIVATE (fstore);
@@ -524,7 +524,7 @@ e_cal_backend_file_store_get_components (ECalBackendStore *store)
ECalBackendFileStore *fstore = E_CAL_BACKEND_FILE_STORE (store);
ECalBackendFileStorePrivate *priv;
GSList *comps = NULL;
-
+
priv = GET_PRIVATE (fstore);
g_static_rw_lock_reader_lock (&priv->lock);
@@ -549,7 +549,7 @@ add_comp_ids_to_slist (gpointer key, gpointer value, gpointer user_data)
{
GSList **slist = (GSList **) user_data;
FullCompObject *obj = NULL;
-
+
obj = value;
if (obj->comp) {
ECalComponentId *id = e_cal_component_get_id (obj->comp);
@@ -566,7 +566,7 @@ e_cal_backend_file_store_get_component_ids (ECalBackendStore *store)
ECalBackendFileStore *fstore = E_CAL_BACKEND_FILE_STORE (store);
ECalBackendFileStorePrivate *priv;
GSList *comp_ids = NULL;
-
+
priv = GET_PRIVATE (fstore);
g_static_rw_lock_reader_lock (&priv->lock);
@@ -672,7 +672,7 @@ e_cal_backend_file_store_load (ECalBackendStore *store)
scan_vcalendar (fstore, icalcomp);
icalcomponent_free (icalcomp);
-
+
return TRUE;
}
@@ -709,9 +709,9 @@ e_cal_backend_file_store_clean (ECalBackendStore *store)
e_file_cache_clean (priv->keys_cache);
g_hash_table_remove_all (priv->comp_uid_hash);
g_hash_table_remove_all (priv->timezones);
-
+
g_static_rw_lock_writer_unlock (&priv->lock);
-
+
save_cache (fstore);
return TRUE;
}
@@ -922,7 +922,7 @@ e_cal_backend_file_store_init (ECalBackendFileStore *self)
priv = GET_PRIVATE(self);
self->priv = priv;
-
+
priv->timezones = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) free_timezone);
priv->comp_uid_hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) destroy_full_object);
priv->keys_cache = NULL;
diff --git a/calendar/libedata-cal/e-cal-backend-store.c b/calendar/libedata-cal/e-cal-backend-store.c
index e062c7f..64dc7e7 100644
--- a/calendar/libedata-cal/e-cal-backend-store.c
+++ b/calendar/libedata-cal/e-cal-backend-store.c
@@ -192,7 +192,7 @@ e_cal_backend_store_class_init (ECalBackendStoreClass *klass)
klass->put_key_value = NULL;
g_object_class_install_property (object_class, PROP_SOURCE_TYPE,
- g_param_spec_enum ("source_type", NULL, NULL,
+ g_param_spec_enum ("source_type", NULL, NULL,
e_cal_source_type_enum_get_type (),
E_CAL_SOURCE_TYPE_EVENT,
G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
diff --git a/calendar/libedata-cal/e-cal-backend-store.h b/calendar/libedata-cal/e-cal-backend-store.h
index 8578ced..f982a7e 100644
--- a/calendar/libedata-cal/e-cal-backend-store.h
+++ b/calendar/libedata-cal/e-cal-backend-store.h
@@ -61,10 +61,10 @@ typedef struct {
gboolean (*clean) (ECalBackendStore *store);
ECalComponent * (*get_component) (ECalBackendStore *store, const gchar *uid, const gchar *rid);
- gboolean (*put_component) (ECalBackendStore *store, ECalComponent *comp);
- gboolean (*remove_component) (ECalBackendStore *store, const gchar *uid, const gchar *rid);
- gboolean (*has_component) (ECalBackendStore *store, const char *uid, const char *rid);
-
+ gboolean (*put_component) (ECalBackendStore *store, ECalComponent *comp);
+ gboolean (*remove_component) (ECalBackendStore *store, const gchar *uid, const gchar *rid);
+ gboolean (*has_component) (ECalBackendStore *store, const gchar *uid, const gchar *rid);
+
GSList * (*get_components_by_uid) (ECalBackendStore *store, const gchar *uid);
GSList * (*get_components) (ECalBackendStore *store);
GSList * (*get_component_ids) (ECalBackendStore *store);
@@ -93,19 +93,19 @@ gboolean e_cal_backend_store_is_loaded (ECalBackendStore *store);
gboolean e_cal_backend_store_remove (ECalBackendStore *store);
gboolean e_cal_backend_store_clean (ECalBackendStore *store);
ECalComponent * e_cal_backend_store_get_component (ECalBackendStore *store, const gchar *uid, const gchar *rid);
-gboolean e_cal_backend_store_put_component (ECalBackendStore *store, ECalComponent *comp);
-gboolean e_cal_backend_store_remove_component (ECalBackendStore *store, const gchar *uid, const gchar *rid);
+gboolean e_cal_backend_store_put_component (ECalBackendStore *store, ECalComponent *comp);
+gboolean e_cal_backend_store_remove_component (ECalBackendStore *store, const gchar *uid, const gchar *rid);
gboolean e_cal_backend_store_has_component (ECalBackendStore *store, const gchar *uid, const gchar *rid);
const icaltimezone * e_cal_backend_store_get_timezone (ECalBackendStore *store, const gchar *tzid);
-gboolean e_cal_backend_store_put_timezone (ECalBackendStore *store, const icaltimezone *zone);
-gboolean e_cal_backend_store_remove_timezone (ECalBackendStore *store, const gchar *tzid);
+gboolean e_cal_backend_store_put_timezone (ECalBackendStore *store, const icaltimezone *zone);
+gboolean e_cal_backend_store_remove_timezone (ECalBackendStore *store, const gchar *tzid);
const icaltimezone * e_cal_backend_store_get_default_timezone (ECalBackendStore *store);
-gboolean e_cal_backend_store_set_default_timezone (ECalBackendStore *store, const icaltimezone *zone);
+gboolean e_cal_backend_store_set_default_timezone (ECalBackendStore *store, const icaltimezone *zone);
GSList * e_cal_backend_store_get_components_by_uid (ECalBackendStore *store, const gchar *uid);
GSList * e_cal_backend_store_get_components (ECalBackendStore *store);
GSList * e_cal_backend_store_get_component_ids (ECalBackendStore *store);
const gchar * e_cal_backend_store_get_key_value (ECalBackendStore *store, const gchar *key);
-gboolean e_cal_backend_store_put_key_value (ECalBackendStore *store, const gchar *key, const gchar *value);
+gboolean e_cal_backend_store_put_key_value (ECalBackendStore *store, const gchar *key, const gchar *value);
void e_cal_backend_store_thaw_changes (ECalBackendStore *store);
void e_cal_backend_store_freeze_changes (ECalBackendStore *store);
diff --git a/camel/providers/groupwise/camel-groupwise-utils.c b/camel/providers/groupwise/camel-groupwise-utils.c
index e0678f5..fc758c0 100644
--- a/camel/providers/groupwise/camel-groupwise-utils.c
+++ b/camel/providers/groupwise/camel-groupwise-utils.c
@@ -356,10 +356,10 @@ send_as_attachment (EGwConnection *cnc, EGwItem *item, CamelStreamMem *content,
if (status != E_GW_CONNECTION_STATUS_OK) {
g_warning ("Could not send a forwardRequest...continuing without!!\n");
-
+
g_free (attachment->name);
attachment->name = g_strdup ("Mime.822");
-
+
g_free (attachment->contentType);
attachment->contentType = g_strdup ("Mail");
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]