diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-29 01:06:29 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-29 01:21:01 +0800 |
commit | 14f8eee012382f04090ea9277e9567d5f32e8bf0 (patch) | |
tree | d1c454675e816f8d948942c21c5d899a969b08a7 /mail | |
parent | e66024d664a1d346d6246b4e8b7c682bafcf4dda (diff) | |
download | gsoc2013-evolution-14f8eee012382f04090ea9277e9567d5f32e8bf0.tar.gz gsoc2013-evolution-14f8eee012382f04090ea9277e9567d5f32e8bf0.tar.zst gsoc2013-evolution-14f8eee012382f04090ea9277e9567d5f32e8bf0.zip |
Whitespace cleanup.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-shell-backend.c | 4 | ||||
-rw-r--r-- | mail/e-mail-shell-migrate.c | 2 | ||||
-rw-r--r-- | mail/em-composer-utils.c | 8 | ||||
-rw-r--r-- | mail/em-event.h | 2 | ||||
-rw-r--r-- | mail/em-filter-context.c | 2 | ||||
-rw-r--r-- | mail/em-folder-browser.c | 8 | ||||
-rw-r--r-- | mail/em-folder-tree.c | 4 | ||||
-rw-r--r-- | mail/em-folder-utils.c | 2 | ||||
-rw-r--r-- | mail/em-folder-view.c | 2 | ||||
-rw-r--r-- | mail/em-format-html-display.c | 2 | ||||
-rw-r--r-- | mail/em-junk-hook.c | 4 | ||||
-rw-r--r-- | mail/em-subscribe-editor.c | 4 | ||||
-rw-r--r-- | mail/em-utils.c | 6 | ||||
-rw-r--r-- | mail/importers/mail-importer.c | 2 | ||||
-rw-r--r-- | mail/importers/pine-importer.c | 2 | ||||
-rw-r--r-- | mail/mail-ops.c | 24 | ||||
-rw-r--r-- | mail/mail-send-recv.c | 6 | ||||
-rw-r--r-- | mail/mail-vfolder.c | 8 | ||||
-rw-r--r-- | mail/message-list.c | 50 | ||||
-rw-r--r-- | mail/message-list.h | 2 | ||||
-rw-r--r-- | mail/message-tag-editor.h | 2 |
21 files changed, 73 insertions, 73 deletions
diff --git a/mail/e-mail-shell-backend.c b/mail/e-mail-shell-backend.c index 10a99e744b..05bf2e4f79 100644 --- a/mail/e-mail-shell-backend.c +++ b/mail/e-mail-shell-backend.c @@ -88,8 +88,8 @@ struct _StoreInfo { /* Initialization callback. */ void (*done) (CamelStore *store, - CamelFolderInfo *info, - gpointer user_data); + CamelFolderInfo *info, + gpointer user_data); gpointer done_user_data; guint removed : 1; diff --git a/mail/e-mail-shell-migrate.c b/mail/e-mail-shell-migrate.c index 862f807504..147cce01a4 100644 --- a/mail/e-mail-shell-migrate.c +++ b/mail/e-mail-shell-migrate.c @@ -2378,7 +2378,7 @@ e_path_to_physical (const gchar *prefix, const gchar *vpath) /* Copy the mangled path. */ p = vpath; - while (1) { + while (1) { newp = strchr (p, '/'); if (newp == NULL) { strcpy (dp, p); diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index c433558295..67d26f440d 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -671,10 +671,10 @@ create_new_composer (const gchar *subject, const gchar *fromuri, gboolean lite) EComposerHeaderTable *table; EAccount *account = NULL; - if (lite) - composer = e_msg_composer_lite_new (); - else - composer = e_msg_composer_new (); + if (lite) + composer = e_msg_composer_lite_new (); + else + composer = e_msg_composer_new (); table = e_msg_composer_get_header_table (composer); if (fromuri != NULL) { diff --git a/mail/em-event.h b/mail/em-event.h index 81173fe690..0af32086cf 100644 --- a/mail/em-event.h +++ b/mail/em-event.h @@ -134,7 +134,7 @@ struct _EMEventTargetCustomIcon { EEventTarget target; GtkCellRenderer *renderer; - const gchar *folder_name; + const gchar *folder_name; }; typedef struct _EEventItem EMEventItem; diff --git a/mail/em-filter-context.c b/mail/em-filter-context.c index 5a82c6ea9d..4817d896b5 100644 --- a/mail/em-filter-context.c +++ b/mail/em-filter-context.c @@ -291,7 +291,7 @@ filter_new_element(RuleContext *rc, const gchar *type) } else if (!strcmp(type, "score")) { return (FilterElement *) filter_int_new_type("score", -3, 3); } else if (!strcmp(type, "source")) { - return (FilterElement *) em_filter_source_element_new(); + return (FilterElement *) em_filter_source_element_new(); } else { return parent_class->new_element(rc, type); } diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c index cb45194c59..cd3f35df0a 100644 --- a/mail/em-folder-browser.c +++ b/mail/em-folder-browser.c @@ -281,7 +281,7 @@ emfb_init(GObject *o) // efb = (EFilterBar *)emfb->search; // efb->account_search_vf = NULL; // efb->all_account_search_vf = NULL; -// efb->account_search_cancel = NULL; +// efb->account_search_cancel = NULL; // e_search_bar_set_menu ((ESearchBar *)emfb->search, emfb_search_items); // e_search_bar_set_scopeoption ((ESearchBar *)emfb->search, emfb_search_scope_items); // e_search_bar_scope_enable ((ESearchBar *)emfb->search, E_FILTERBAR_CURRENT_MESSAGE_ID, FALSE); @@ -588,9 +588,9 @@ vfolder_setup(CamelFolder *folder, const gchar *query, GList *sources_uri, GList m->sources_uri = sources_uri; m->sources_folder = sources_folder; - if (cancel) { - m->cancel = cancel; - } + if (cancel) { + m->cancel = cancel; + } id = m->base.seq; mail_msg_slow_ordered_push (m); diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index de0431937c..77bcdee85b 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -638,7 +638,7 @@ emft_maybe_expand_row (EMFolderTreeModel *model, GtkTreePath *tree_path, GtkTree si = g_hash_table_lookup (model->store_hash, store); if ((account = e_get_account_by_name (si->display_name))) { - key = g_strdup_printf ("%s/%s", account->uid, full_name ? full_name : ""); + key = g_strdup_printf ("%s/%s", account->uid, full_name ? full_name : ""); } else if (CAMEL_IS_VEE_STORE (store)) { /* vfolder store */ key = g_strdup_printf ("vfolder/%s", full_name ? full_name : ""); @@ -1835,7 +1835,7 @@ emft_update_model_expanded_state (struct _EMFolderTreePrivate *priv, GtkTreeIter si = g_hash_table_lookup (priv->model->store_hash, store); if ((account = e_get_account_by_name (si->display_name))) { - key = g_strdup_printf ("%s/%s", account->uid, full_name ? full_name : ""); + key = g_strdup_printf ("%s/%s", account->uid, full_name ? full_name : ""); } else if (CAMEL_IS_VEE_STORE (store)) { /* vfolder store */ key = g_strdup_printf ("vfolder/%s", full_name ? full_name : ""); diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c index 1c7755fa69..4ad9378549 100644 --- a/mail/em-folder-utils.c +++ b/mail/em-folder-utils.c @@ -625,7 +625,7 @@ new_folder_created_cb (CamelFolderInfo *fi, gpointer user_data) } g_object_unref (emcftd->emfs); g_free (emcftd->uri); - g_free (emcftd); + g_free (emcftd); } static void diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c index 5e2f88ae99..e0e64fa90a 100644 --- a/mail/em-folder-view.c +++ b/mail/em-folder-view.c @@ -1019,7 +1019,7 @@ emfv_setting_notify(GConfClient *gconf, guint cnxn_id, GConfEntry *entry, EMFold EMFormat *emf = (EMFormat *)emfv->preview; header_config_list = gconf_client_get_list(gconf, "/apps/evolution/mail/display/headers", GCONF_VALUE_STRING, NULL); - em_format_clear_headers((EMFormat *)emfv->preview); + em_format_clear_headers((EMFormat *)emfv->preview); p = header_config_list; while (p) { EMMailerPrefsHeader *h; diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c index dbd3ddbbc3..2a51bfad6c 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -1090,7 +1090,7 @@ efhd_change_cursor(GtkWidget *w, GdkEventCrossing *event, struct _attach_puri *i if (info->shown && info->image) { if (info->fit_width != 0) { if (em_icon_stream_is_resized(info->puri.cid, info->fit_width, info->fit_height)) - e_cursor_set(w->window, E_CURSOR_ZOOM_IN); + e_cursor_set(w->window, E_CURSOR_ZOOM_IN); } } diff --git a/mail/em-junk-hook.c b/mail/em-junk-hook.c index 42c15f754e..a0a2a205ce 100644 --- a/mail/em-junk-hook.c +++ b/mail/em-junk-hook.c @@ -55,7 +55,7 @@ static const EPluginHookTargetKey emjh_flag_map[] = { <hook class="org.gnome.evolution.mail.junk:1.0"> <group id="EMJunk"> <item check_junk="sa_check_junk" - report_junk="sa_report_junk" + report_junk="sa_report_junk" report_non_junk="sa_report_non_junk" commit_reports = "sa_commit_reports"/> </group> @@ -90,7 +90,7 @@ em_junk_get_name (CamelJunkPlugin *csp) if (item->hook && item->hook->hook.plugin->enabled) { return (item->hook->hook.plugin->name); } else - return _("None"); + return _("None"); } diff --git a/mail/em-subscribe-editor.c b/mail/em-subscribe-editor.c index d2db79fdc4..c5fdb54896 100644 --- a/mail/em-subscribe-editor.c +++ b/mail/em-subscribe-editor.c @@ -220,8 +220,8 @@ sub_folder_done (struct _zsubscribe_msg *m) msgListNode = (MailMsgListNode *) e_dlist_remhead(&m->sub->subscribe); if (msgListNode) { next = (struct _zsubscribe_msg *) msgListNode->msg; - /* Free the memory of the MailMsgListNode which won't be used anymore. */ - g_free(msgListNode); + /* Free the memory of the MailMsgListNode which won't be used anymore. */ + g_free(msgListNode); next->sub->subscribe_id = next->base.seq; mail_msg_unordered_push (next); } else { diff --git a/mail/em-utils.c b/mail/em-utils.c index 25943d62df..c3740d8a70 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -2202,7 +2202,7 @@ em_utils_contact_photo (struct _CamelInternetAddress *cia, gboolean local) } } - query = e_book_query_field_test(E_CONTACT_EMAIL, E_BOOK_QUERY_IS, addr); + query = e_book_query_field_test(E_CONTACT_EMAIL, E_BOOK_QUERY_IS, addr); for (g = e_source_list_peek_groups(emu_addr_list); g; g = g_slist_next(g)) { if (local && !is_local (g->data)) continue; @@ -2274,8 +2274,8 @@ em_utils_contact_photo (struct _CamelInternetAddress *cia, gboolean local) /* Form a mime part out of the photo */ part = camel_mime_part_new(); camel_mime_part_set_content(part, - (const gchar *) photo->data.inlined.data, - photo->data.inlined.length, "image/jpeg"); + (const gchar *) photo->data.inlined.data, + photo->data.inlined.length, "image/jpeg"); e_contact_photo_free (photo); diff --git a/mail/importers/mail-importer.c b/mail/importers/mail-importer.c index 5540a08abf..e40a1df20c 100644 --- a/mail/importers/mail-importer.c +++ b/mail/importers/mail-importer.c @@ -366,7 +366,7 @@ import_folders_rec(struct _import_folders_data *m, const gchar *filepath, const const gchar *folder; dir = g_dir_open(filepath, 0, NULL); - if (dir == NULL) + if (dir == NULL) return; shell_backend = E_SHELL_BACKEND (global_mail_shell_backend); diff --git a/mail/importers/pine-importer.c b/mail/importers/pine-importer.c index e460d66d2e..0c5b5fd92e 100644 --- a/mail/importers/pine-importer.c +++ b/mail/importers/pine-importer.c @@ -15,7 +15,7 @@ * * Authors: * Iain Holmes <iain@ximian.com> - * Michael Zucchi <notzed@ximian.com> + * Michael Zucchi <notzed@ximian.com> * * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) * diff --git a/mail/mail-ops.c b/mail/mail-ops.c index a10766bf32..4c9ef452c8 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -17,7 +17,7 @@ * * Authors: * Dan Winship <danw@ximian.com> - * Jeffrey Stedfast <fejj@ximian.com> + * Jeffrey Stedfast <fejj@ximian.com> * Peter Williams <peterw@ximian.com> * Michael Zucchi <notzed@ximian.com> * @@ -731,11 +731,11 @@ send_queue_exec (struct _send_queue_msg *m) if (m->cancel) camel_operation_register (m->cancel); - else - camel_operation_register (m->base.cancel); + else + camel_operation_register (m->base.cancel); - if (!m->cancel) - camel_operation_start (NULL, _("Sending message")); + if (!m->cancel) + camel_operation_start (NULL, _("Sending message")); camel_exception_init (&ex); @@ -746,8 +746,8 @@ send_queue_exec (struct _send_queue_msg *m) gint pc = (100 * i) / send_uids->len; report_status (m, CAMEL_FILTER_STATUS_START, pc, _("Sending message %d of %d"), i+1, send_uids->len); - if (!m->cancel) - camel_operation_progress (NULL, (i+1) * 100 / send_uids->len); + if (!m->cancel) + camel_operation_progress (NULL, (i+1) * 100 / send_uids->len); mail_send_message (m->queue, send_uids->pdata[i], m->destination, m->driver, &ex); if (camel_exception_is_set (&ex)) { @@ -796,13 +796,13 @@ send_queue_exec (struct _send_queue_msg *m) camel_exception_clear (&ex); } - if (!m->cancel) - camel_operation_end (NULL); + if (!m->cancel) + camel_operation_end (NULL); if (m->cancel) camel_operation_unregister (m->cancel); - else - camel_operation_unregister (m->base.cancel); + else + camel_operation_unregister (m->base.cancel); } @@ -2478,7 +2478,7 @@ prepare_offline_exec (struct _set_offline_msg *m) { if (CAMEL_IS_DISCO_STORE (m->store)) { camel_disco_store_prepare_for_offline (CAMEL_DISCO_STORE (m->store), - &m->base.ex); + &m->base.ex); } else if (CAMEL_IS_OFFLINE_STORE (m->store)) { camel_offline_store_prepare_for_offline (CAMEL_OFFLINE_STORE (m->store), &m->base.ex); diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index 95f3ca53e2..aa1f1afec0 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -310,7 +310,7 @@ static gchar * format_url(const gchar *internal_url, const gchar *account_name) { CamelURL *url; - gchar *pretty_url; + gchar *pretty_url; url = camel_url_new(internal_url, NULL); if (account_name) { @@ -498,7 +498,7 @@ build_dialog (GtkWindow *parent, recv_icon = gtk_image_new_from_icon_name ( "mail-inbox", GTK_ICON_SIZE_LARGE_TOOLBAR); - pretty_url = format_url (source->url, account->name); + pretty_url = format_url (source->url, account->name); label = gtk_label_new (NULL); gtk_label_set_ellipsize ( GTK_LABEL (label), PANGO_ELLIPSIZE_END); @@ -519,7 +519,7 @@ build_dialog (GtkWindow *parent, gtk_misc_set_alignment (GTK_MISC (label), 0, .5); gtk_misc_set_alignment (GTK_MISC (status_label), 0, .5); - gtk_table_attach ( + gtk_table_attach ( GTK_TABLE (table), recv_icon, 0, 1, row, row+2, 0, 0, 0, 0); gtk_table_attach ( diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c index 285f0b54ab..d2952cdfe5 100644 --- a/mail/mail-vfolder.c +++ b/mail/mail-vfolder.c @@ -454,7 +454,7 @@ mail_vfolder_add_uri(CamelStore *store, const gchar *curi, gint remove) LOCK(); -/* d(printf("%s uri to check: %s\n", remove?"Removing":"Adding", uri)); */ +/* d(printf("%s uri to check: %s\n", remove?"Removing":"Adding", uri)); */ /* maintain the source folders lists for changed rules later on */ if (CAMEL_IS_VEE_STORE(store)) { @@ -485,7 +485,7 @@ mail_vfolder_add_uri(CamelStore *store, const gchar *curi, gint remove) if (context == NULL) goto done; - rule = NULL; + rule = NULL; while ((rule = rule_context_next_rule((RuleContext *)context, rule, NULL))) { gint found = FALSE; @@ -561,7 +561,7 @@ mail_vfolder_delete_uri(CamelStore *store, const gchar *curi) goto done; /* see if any rules directly reference this removed uri */ - rule = NULL; + rule = NULL; while ((rule = rule_context_next_rule ((RuleContext *) context, rule, NULL))) { if (!rule->name) { @@ -650,7 +650,7 @@ mail_vfolder_rename_uri(CamelStore *store, const gchar *cfrom, const gchar *cto) LOCK(); /* see if any rules directly reference this removed uri */ - rule = NULL; + rule = NULL; while ( (rule = rule_context_next_rule((RuleContext *)context, rule, NULL)) ) { source = NULL; while ( (source = em_vfolder_rule_next_source((EMVFolderRule *)rule, source)) ) { diff --git a/mail/message-list.c b/mail/message-list.c index 8050dba5ca..1291a1404c 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -1585,32 +1585,32 @@ ml_tree_value_at (ETreeModel *etm, ETreePath path, gint col, gpointer model_data folder = message_list->folder; } - url = mail_tools_folder_to_url (folder); - euri = em_uri_from_camel(url); - - account = mail_config_get_account_by_source_url (url); - - if (account) { - curl = camel_url_new (url, &ex); - location = g_strconcat (account->name, ":", curl->path, NULL); - } else { - /* Local account */ - euri = em_uri_from_camel(url); - curl = camel_url_new (euri, &ex); - if (curl->host && !strcmp(curl->host, "local") && curl->user && !strcmp(curl->user, "local")) - location = g_strconcat (_("On This Computer"), ":",curl->path, NULL); - } - - camel_exception_clear (&ex); + url = mail_tools_folder_to_url (folder); + euri = em_uri_from_camel(url); + + account = mail_config_get_account_by_source_url (url); + + if (account) { + curl = camel_url_new (url, &ex); + location = g_strconcat (account->name, ":", curl->path, NULL); + } else { + /* Local account */ + euri = em_uri_from_camel(url); + curl = camel_url_new (euri, &ex); + if (curl->host && !strcmp(curl->host, "local") && curl->user && !strcmp(curl->user, "local")) + location = g_strconcat (_("On This Computer"), ":",curl->path, NULL); + } + + camel_exception_clear (&ex); camel_url_free (curl); - g_free (url); - g_free (euri); + g_free (url); + g_free (euri); - return location; + return location; } case COL_MIXED_RECIPIENTS: case COL_RECIPIENTS:{ - str = camel_message_info_to (msg_info); + str = camel_message_info_to (msg_info); return sanitize_recipients(str); } @@ -1645,7 +1645,7 @@ ml_tree_value_at (ETreeModel *etm, ETreePath path, gint col, gpointer model_data } else return (gpointer) (""); } - default: + default: g_warning ("This shouldn't be reached\n"); return NULL; } @@ -1832,7 +1832,7 @@ static ECell * create_composite_cell (gint col) cell_sub = e_cell_text_new(fixed_name? fixed_name:NULL, GTK_JUSTIFY_LEFT); g_object_set (G_OBJECT (cell_sub), -/* "bold_column", COL_UNREAD, */ +/* "bold_column", COL_UNREAD, */ "color_column", COL_COLOUR, NULL); cell_tree = e_cell_tree_new (NULL, NULL, TRUE, cell_sub); @@ -2660,7 +2660,7 @@ message_list_construct (MessageList *message_list) e_tree_memory_set_expanded_default(E_TREE_MEMORY(message_list->model), read_boolean_with_default (gconf, - "/apps/evolution/mail/display/thread_expand", + "/apps/evolution/mail/display/thread_expand", TRUE)); message_list->priv->thread_latest = read_boolean_with_default (gconf, "/apps/evolution/mail/display/thread_latest", TRUE); @@ -4038,7 +4038,7 @@ message_list_hide_clear (MessageList *ml) /* version 1 file is: uintf 1 uintf hide_before - uintf hide_after + uintf hide_after string* uids */ diff --git a/mail/message-list.h b/mail/message-list.h index e902e9640b..47d3708b5e 100644 --- a/mail/message-list.h +++ b/mail/message-list.h @@ -56,7 +56,7 @@ enum { COL_FOLLOWUP_FLAG_STATUS, COL_FOLLOWUP_FLAG, COL_FOLLOWUP_DUE_BY, - COL_LOCATION, /* vfolder location? */ + COL_LOCATION, /* vfolder location? */ COL_SENDER, COL_RECIPIENTS, COL_MIXED_SENDER, diff --git a/mail/message-tag-editor.h b/mail/message-tag-editor.h index 30d3ec1e9b..5193ac2103 100644 --- a/mail/message-tag-editor.h +++ b/mail/message-tag-editor.h @@ -34,7 +34,7 @@ extern "C" { #endif /* __cplusplus */ #define MESSAGE_TAG_EDITOR_TYPE (message_tag_editor_get_type ()) -#define MESSAGE_TAG_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, MESSAGE_TAG_EDITOR_TYPE, MessageTagEditor)) +#define MESSAGE_TAG_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, MESSAGE_TAG_EDITOR_TYPE, MessageTagEditor)) #define MESSAGE_TAG_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, MESSAGE_TAG_EDITOR_TYPE, MessageTagEditorClass)) #define IS_MESSAGE_TAG_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, MESSAGE_TAG_EDITOR_TYPE)) #define IS_MESSAGE_TAG_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MESSAGE_TAG_EDITOR_TYPE)) |