aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-07-01 12:07:26 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-08-13 23:27:51 +0800
commitf59681796df8fe0138a1754abbe8ec781bc1535e (patch)
tree0ced0c119ffed095713d7f64732686df9b2d9152 /composer
parentbf4a1a13e3295deefc4031a446627ff9b1c95c7a (diff)
downloadgsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.tar
gsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.tar.gz
gsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.tar.bz2
gsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.tar.lz
gsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.tar.xz
gsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.tar.zst
gsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'composer')
-rw-r--r--composer/e-composer-header-table.c7
-rw-r--r--composer/e-msg-composer.c26
2 files changed, 23 insertions, 10 deletions
diff --git a/composer/e-composer-header-table.c b/composer/e-composer-header-table.c
index c87abcf307..7fe1399dbe 100644
--- a/composer/e-composer-header-table.c
+++ b/composer/e-composer-header-table.c
@@ -997,7 +997,8 @@ composer_header_table_realize_cb (EComposerHeaderTable *table)
g_return_if_fail (table != NULL);
g_return_if_fail (table->priv != NULL);
- g_signal_handlers_disconnect_by_func (table, composer_header_table_realize_cb, NULL);
+ g_signal_handlers_disconnect_by_func (
+ table, composer_header_table_realize_cb, NULL);
e_name_selector_load_books (table->priv->name_selector);
}
@@ -1078,7 +1079,9 @@ e_composer_header_table_init (EComposerHeaderTable *table)
}
/* postpone name_selector loading, do that only when really needed */
- g_signal_connect (table, "realize", G_CALLBACK (composer_header_table_realize_cb), NULL);
+ g_signal_connect (
+ table, "realize",
+ G_CALLBACK (composer_header_table_realize_cb), NULL);
}
GtkWidget *
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 5b799309a6..6f608ab302 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -3934,22 +3934,27 @@ add_recipients (GList *list, const gchar *recips)
}
static gboolean
-list_contains_addr (const GList *lst, EDestination *dest)
+list_contains_addr (const GList *list,
+ EDestination *dest)
{
g_return_val_if_fail (dest != NULL, FALSE);
- while (lst) {
- if (e_destination_equal (dest, lst->data))
+ while (list != NULL) {
+ if (e_destination_equal (dest, list->data))
return TRUE;
- lst = lst->next;
+ list = list->next;
}
return FALSE;
}
static void
-merge_cc_bcc (EDestination **addrv, GList **merge_into, const GList *to, const GList *cc, const GList *bcc)
+merge_cc_bcc (EDestination **addrv,
+ GList **merge_into,
+ const GList *to,
+ const GList *cc,
+ const GList *bcc)
{
gint ii;
@@ -3957,12 +3962,16 @@ merge_cc_bcc (EDestination **addrv, GList **merge_into, const GList *to, const G
if (!list_contains_addr (to, addrv[ii]) &&
!list_contains_addr (cc, addrv[ii]) &&
!list_contains_addr (bcc, addrv[ii]))
- *merge_into = g_list_append (*merge_into, g_object_ref (addrv[ii]));
+ *merge_into = g_list_append (
+ *merge_into, g_object_ref (addrv[ii]));
}
}
static void
-merge_always_cc_and_bcc (EComposerHeaderTable *table, const GList *to, GList **cc, GList **bcc)
+merge_always_cc_and_bcc (EComposerHeaderTable *table,
+ const GList *to,
+ GList **cc,
+ GList **bcc)
{
EDestination **addrv;
@@ -3980,7 +3989,8 @@ merge_always_cc_and_bcc (EComposerHeaderTable *table, const GList *to, GList **c
}
static void
-handle_mailto (EMsgComposer *composer, const gchar *mailto)
+handle_mailto (EMsgComposer *composer,
+ const gchar *mailto)
{
EAttachmentView *view;
EAttachmentStore *store;