diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-08-16 23:25:56 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-09-04 19:34:32 +0800 |
commit | fcbbdfbd18e15b4ee8322a0217cf03a689a5e033 (patch) | |
tree | e16cd2a2279558c6a2bfb6ca39fcbaac4c85ba59 /mail/e-mail-migrate.c | |
parent | f78417c48861759d7b0c4535ecd3febe4638a7d3 (diff) | |
download | gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar.gz gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar.zst gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'mail/e-mail-migrate.c')
-rw-r--r-- | mail/e-mail-migrate.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/mail/e-mail-migrate.c b/mail/e-mail-migrate.c index 6ac8f89b7f..07b2a8bb2c 100644 --- a/mail/e-mail-migrate.c +++ b/mail/e-mail-migrate.c @@ -124,7 +124,8 @@ static GtkLabel *label; static GtkProgressBar *progress; static void -em_migrate_setup_progress_dialog (const gchar *title, const gchar *desc) +em_migrate_setup_progress_dialog (const gchar *title, + const gchar *desc) { GtkWidget *vbox, *hbox, *w; gchar *markup; @@ -238,7 +239,10 @@ static gint open_flags[3] = { }; static gboolean -cp (const gchar *src, const gchar *dest, gboolean show_progress, gint mode) +cp (const gchar *src, + const gchar *dest, + gboolean show_progress, + gint mode) { guchar readbuf[65536]; gssize nread, nwritten; @@ -417,7 +421,8 @@ emm_setup_initial (const gchar *data_dir) } static gboolean -is_in_plugs_list (GSList *list, const gchar *value) +is_in_plugs_list (GSList *list, + const gchar *value) { GSList *l; @@ -636,7 +641,8 @@ migrate_folders (CamelStore *store, /* This could be in CamelStore.ch */ static void -count_folders (CamelFolderInfo *fi, gint *count) +count_folders (CamelFolderInfo *fi, + gint *count) { while (fi) { *count = *count + 1; @@ -697,7 +703,7 @@ migrate_to_db (EShellBackend *shell_backend) EMailBackend *mail_backend; EMailSession *mail_session; EIterator *iter; - gint i=0, len; + gint i = 0, len; CamelStore *store = NULL; CamelFolderInfo *info; CamelURL *url; @@ -724,7 +730,7 @@ migrate_to_db (EShellBackend *shell_backend) "folders has been moved to SQLite since Evolution 2.24.\n\nPlease be " "patient while Evolution migrates your folders...")); - em_migrate_set_progress ( (double) i/(len+1)); + em_migrate_set_progress ( (double) i / (len + 1)); store = setup_local_store (shell_backend, session); url = camel_service_get_camel_url (CAMEL_SERVICE (store)); @@ -753,14 +759,14 @@ migrate_to_db (EShellBackend *shell_backend) g_main_context_iteration (NULL, TRUE); } i++; - em_migrate_set_progress ( (double) i/(len+1)); + em_migrate_set_progress ( (double) i / (len + 1)); while (e_iterator_is_valid (iter)) { EAccount *account = (EAccount *) e_iterator_get (iter); EAccountService *service; service = account->source; - em_migrate_set_progress ( (double) i/(len+1)); + em_migrate_set_progress ( (double) i / (len + 1)); if (account->enabled && service->url != NULL && service->url[0] && strncmp (service->url, "mbox:", 5) != 0) { @@ -796,8 +802,6 @@ migrate_to_db (EShellBackend *shell_backend) } - //camel_session_set_online ((CamelSession *) session, TRUE); - g_object_unref (iter); em_migrate_close_progress_dialog (); |