aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-06-07 04:08:47 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-06-07 08:09:08 +0800
commitffc019e36fd4703e5342030ca6779032d91c7611 (patch)
tree511ec7fb99746b600e2c176511d8e056831371bf /addressbook
parent3fc28cd410369d299f080e44a71797f00c522eec (diff)
downloadgsoc2013-evolution-ffc019e36fd4703e5342030ca6779032d91c7611.tar.gz
gsoc2013-evolution-ffc019e36fd4703e5342030ca6779032d91c7611.tar.zst
gsoc2013-evolution-ffc019e36fd4703e5342030ca6779032d91c7611.zip
Coding style and whitespace cleanups.
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/gui/widgets/ea-minicard-view.c18
-rw-r--r--addressbook/importers/evolution-csv-importer.c13
2 files changed, 23 insertions, 8 deletions
diff --git a/addressbook/gui/widgets/ea-minicard-view.c b/addressbook/gui/widgets/ea-minicard-view.c
index d8bd962467..52624296a3 100644
--- a/addressbook/gui/widgets/ea-minicard-view.c
+++ b/addressbook/gui/widgets/ea-minicard-view.c
@@ -57,8 +57,13 @@ static gboolean selection_interface_is_child_selected (AtkSelection *selection,
static void atk_action_interface_init (AtkActionIface *iface);
static gboolean atk_action_interface_do_action (AtkAction *iface, gint i);
static gint atk_action_interface_get_n_action (AtkAction *iface);
-static G_CONST_RETURN gchar * atk_action_interface_get_description (AtkAction *iface, gint i);
-static G_CONST_RETURN gchar * atk_action_interface_get_name (AtkAction *iface, gint i);
+static G_CONST_RETURN gchar *
+ atk_action_interface_get_description
+ (AtkAction *iface,
+ gint i);
+static G_CONST_RETURN gchar *
+ atk_action_interface_get_name (AtkAction *iface,
+ gint i);
static gpointer parent_class = NULL;
@@ -145,7 +150,8 @@ ea_minicard_view_get_name (AtkObject *accessible)
g_return_val_if_fail (EA_IS_MINICARD_VIEW (accessible), NULL);
- reflow = E_REFLOW(atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (accessible)));
+ reflow = E_REFLOW (atk_gobject_accessible_get_object (
+ ATK_GOBJECT_ACCESSIBLE (accessible)));
if (!reflow)
return NULL;
@@ -201,7 +207,8 @@ ea_minicard_view_get_n_children (AtkObject *accessible)
g_return_val_if_fail (EA_IS_MINICARD_VIEW (accessible), -1);
- reflow = E_REFLOW (atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE(accessible)));
+ reflow = E_REFLOW (atk_gobject_accessible_get_object (
+ ATK_GOBJECT_ACCESSIBLE(accessible)));
if (!reflow)
return -1;
@@ -245,7 +252,8 @@ ea_minicard_view_ref_child (AtkObject *accessible, gint index)
if (child_num <= 0 || index < 0 || index >= child_num)
return NULL;
- reflow = E_REFLOW (atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (accessible)));
+ reflow = E_REFLOW (atk_gobject_accessible_get_object (
+ ATK_GOBJECT_ACCESSIBLE (accessible)));
if (!reflow)
return NULL;
if (!reflow->items )
diff --git a/addressbook/importers/evolution-csv-importer.c b/addressbook/importers/evolution-csv-importer.c
index bcd5a7a801..29204b2c2e 100644
--- a/addressbook/importers/evolution-csv-importer.c
+++ b/addressbook/importers/evolution-csv-importer.c
@@ -57,7 +57,10 @@ typedef struct {
FILE *file;
gulong size;
gint count;
- GHashTable *fields_map; /* gint->gint, column index in the csv file to an index in the known fields array */
+
+ /* gint -> gint -- Column index in the CSV
+ * file to an index in the known fields array. */
+ GHashTable *fields_map;
EBook *book;
GSList *contacts;
@@ -322,7 +325,7 @@ parseNextValue (const gchar **pptr)
g_return_val_if_fail (pptr != NULL, NULL);
g_return_val_if_fail (*pptr != NULL, NULL);
-
+
if (!*ptr || *ptr == '\n')
return NULL;
@@ -476,7 +479,11 @@ parseLine (CSVImporter *gci, EContact *contact, gchar *buf) {
e_contact_set (contact, contact_field, value->str);
} else {
if (contact_field == E_CONTACT_WANTS_HTML)
- e_contact_set (contact, contact_field, GINT_TO_POINTER (g_ascii_strcasecmp (value->str, "TRUE") == 0));
+ e_contact_set (
+ contact, contact_field,
+ GINT_TO_POINTER (
+ g_ascii_strcasecmp (
+ value->str, "TRUE") == 0));
else
e_contact_set (contact, contact_field, value->str);
}