[evolution-data-server/gnome-3-8] ECalBackendFile: Indentation cleanups.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-8] ECalBackendFile: Indentation cleanups.
- Date: Thu, 11 Apr 2013 17:52:46 +0000 (UTC)
commit cdf339bc1eb71d9f66bee521766da4fe47841775
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Apr 11 09:45:24 2013 -0400
ECalBackendFile: Indentation cleanups.
Tabs, not spaces.
(cherry picked from commit 89db12c1ec94bf66aa9632744f4e5636cdb5c369)
calendar/backends/file/e-cal-backend-file.c | 72 +++++++++++++-------------
1 files changed, 36 insertions(+), 36 deletions(-)
---
diff --git a/calendar/backends/file/e-cal-backend-file.c b/calendar/backends/file/e-cal-backend-file.c
index 704e861..7c87be2 100644
--- a/calendar/backends/file/e-cal-backend-file.c
+++ b/calendar/backends/file/e-cal-backend-file.c
@@ -381,77 +381,77 @@ uid_in_use (ECalBackendFile *cbfile,
static icalproperty *
get_revision_property (ECalBackendFile *cbfile)
{
- ECalBackendFilePrivate *priv;
- icalproperty *prop;
+ ECalBackendFilePrivate *priv;
+ icalproperty *prop;
- priv = cbfile->priv;
- prop = icalcomponent_get_first_property (priv->icalcomp, ICAL_X_PROPERTY);
+ priv = cbfile->priv;
+ prop = icalcomponent_get_first_property (priv->icalcomp, ICAL_X_PROPERTY);
- while (prop != NULL) {
- const gchar *name = icalproperty_get_x_name (prop);
+ while (prop != NULL) {
+ const gchar *name = icalproperty_get_x_name (prop);
- if (name && strcmp (name, ECAL_REVISION_X_PROP) == 0)
- return prop;
+ if (name && strcmp (name, ECAL_REVISION_X_PROP) == 0)
+ return prop;
- prop = icalcomponent_get_next_property (priv->icalcomp, ICAL_X_PROPERTY);
- }
+ prop = icalcomponent_get_next_property (priv->icalcomp, ICAL_X_PROPERTY);
+ }
- return NULL;
+ return NULL;
}
static gchar *
make_revision_string (ECalBackendFile *cbfile)
{
- GTimeVal timeval;
- gchar *datestr;
- gchar *revision;
+ GTimeVal timeval;
+ gchar *datestr;
+ gchar *revision;
- g_get_current_time (&timeval);
+ g_get_current_time (&timeval);
- datestr = g_time_val_to_iso8601 (&timeval);
- revision = g_strdup_printf ("%s(%d)", datestr, cbfile->priv->revision_counter++);
+ datestr = g_time_val_to_iso8601 (&timeval);
+ revision = g_strdup_printf ("%s(%d)", datestr, cbfile->priv->revision_counter++);
- g_free (datestr);
- return revision;
+ g_free (datestr);
+ return revision;
}
static icalproperty *
ensure_revision (ECalBackendFile *cbfile)
{
- icalproperty * prop;
+ icalproperty * prop;
- prop = get_revision_property (cbfile);
+ prop = get_revision_property (cbfile);
- if (!prop) {
- gchar *revision = make_revision_string (cbfile);
+ if (!prop) {
+ gchar *revision = make_revision_string (cbfile);
- prop = icalproperty_new (ICAL_X_PROPERTY);
+ prop = icalproperty_new (ICAL_X_PROPERTY);
- icalproperty_set_x_name (prop, ECAL_REVISION_X_PROP);
- icalproperty_set_x (prop, revision);
+ icalproperty_set_x_name (prop, ECAL_REVISION_X_PROP);
+ icalproperty_set_x (prop, revision);
- icalcomponent_add_property (cbfile->priv->icalcomp, prop);
+ icalcomponent_add_property (cbfile->priv->icalcomp, prop);
- g_free (revision);
- }
+ g_free (revision);
+ }
- return prop;
+ return prop;
}
static void
bump_revision (ECalBackendFile *cbfile)
{
- /* Update the revision string */
- icalproperty *prop = ensure_revision (cbfile);
- gchar *revision = make_revision_string (cbfile);
+ /* Update the revision string */
+ icalproperty *prop = ensure_revision (cbfile);
+ gchar *revision = make_revision_string (cbfile);
- icalproperty_set_x (prop, revision);
+ icalproperty_set_x (prop, revision);
- e_cal_backend_notify_property_changed (E_CAL_BACKEND (cbfile),
+ e_cal_backend_notify_property_changed (E_CAL_BACKEND (cbfile),
CAL_BACKEND_PROPERTY_REVISION,
revision);
- g_free (revision);
+ g_free (revision);
}
/* Calendar backend methods */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]