aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/pst-import
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-09 01:24:42 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:11 +0800
commit54da4fc09cf226fdb59b9f0c70555e2e57dc1f91 (patch)
treec62c9ac6d08670dffc400ff00117508512ce4f8b /plugins/pst-import
parentfe20f70779fb486169a0735499d24e001ffa0cab (diff)
downloadgsoc2013-evolution-54da4fc09cf226fdb59b9f0c70555e2e57dc1f91.tar.gz
gsoc2013-evolution-54da4fc09cf226fdb59b9f0c70555e2e57dc1f91.tar.zst
gsoc2013-evolution-54da4fc09cf226fdb59b9f0c70555e2e57dc1f91.zip
Coding style cleanups.
Diffstat (limited to 'plugins/pst-import')
-rw-r--r--plugins/pst-import/pst-importer.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/pst-import/pst-importer.c b/plugins/pst-import/pst-importer.c
index 603e739fe5..e17c50ad72 100644
--- a/plugins/pst-import/pst-importer.c
+++ b/plugins/pst-import/pst-importer.c
@@ -144,7 +144,7 @@ org_credativ_evolution_readpst_supported (EPlugin *epl, EImportTarget *target)
return FALSE;
}
- s = (EImportTargetURI *)target;
+ s = (EImportTargetURI *) target;
if (s->uri_src == NULL) {
return TRUE;
@@ -338,19 +338,19 @@ org_credativ_evolution_readpst_getwidget (EImport *ei, EImportTarget *target, EI
w = gtk_check_button_new_with_mnemonic (_("A_ppointments"));
gtk_toggle_button_set_active ((GtkToggleButton *) w, FALSE);
g_signal_connect (w, "toggled", G_CALLBACK (checkbox_appt_toggle_cb), target);
- gtk_box_pack_start ((GtkBox *)framebox, w, FALSE, FALSE, 0);
+ gtk_box_pack_start ((GtkBox *) framebox, w, FALSE, FALSE, 0);
/* Tasks */
w = gtk_check_button_new_with_mnemonic (_("_Tasks"));
- gtk_toggle_button_set_active ((GtkToggleButton *)w, FALSE);
+ gtk_toggle_button_set_active ((GtkToggleButton *) w, FALSE);
g_signal_connect (w, "toggled", G_CALLBACK (checkbox_task_toggle_cb), target);
- gtk_box_pack_start ((GtkBox *)framebox, w, FALSE, FALSE, 0);
+ gtk_box_pack_start ((GtkBox *) framebox, w, FALSE, FALSE, 0);
/* Journal */
w = gtk_check_button_new_with_mnemonic (_("_Journal entries"));
- gtk_toggle_button_set_active ((GtkToggleButton *)w, FALSE);
+ gtk_toggle_button_set_active ((GtkToggleButton *) w, FALSE);
g_signal_connect (w, "toggled", G_CALLBACK (checkbox_journal_toggle_cb), target);
- gtk_box_pack_start ((GtkBox *)framebox, w, FALSE, FALSE, 0);
+ gtk_box_pack_start ((GtkBox *) framebox, w, FALSE, FALSE, 0);
gtk_widget_show_all (framebox);
@@ -474,8 +474,8 @@ pst_import_file (PstImporter *m)
shell_backend = e_shell_get_backend_by_name (shell, "mail");
session = e_mail_backend_get_session (E_MAIL_BACKEND (shell_backend));
- filename = g_filename_from_uri (((EImportTargetURI *)m->target)->uri_src, NULL, NULL);
- m->parent_uri = g_strdup (((EImportTargetURI *)m->target)->uri_dest); /* Destination folder, was set in our widget */
+ filename = g_filename_from_uri (((EImportTargetURI *) m->target)->uri_src, NULL, NULL);
+ m->parent_uri = g_strdup (((EImportTargetURI *) m->target)->uri_dest); /* Destination folder, was set in our widget */
camel_operation_push_message (NULL, _("Importing '%s'"), filename);
@@ -741,7 +741,7 @@ pst_create_folder (PstImporter *m)
shell_backend = e_shell_get_backend_by_name (shell, "mail");
session = e_mail_backend_get_session (E_MAIL_BACKEND (shell_backend));
- parent = ((EImportTargetURI *)m->target)->uri_dest;
+ parent = ((EImportTargetURI *) m->target)->uri_dest;
dest = g_strdup (m->folder_uri);
g_assert (g_str_has_prefix (dest, parent));
@@ -891,7 +891,7 @@ pst_process_email (PstImporter *m, pst_item *item)
/*g_message (" Email headers... %s...", item->email->header);*/
stream = camel_stream_mem_new_with_buffer (item->email->header.str, strlen (item->email->header.str));
- if (!camel_data_wrapper_construct_from_stream_sync ((CamelDataWrapper *)msg, stream, NULL, NULL))
+ if (!camel_data_wrapper_construct_from_stream_sync ((CamelDataWrapper *) msg, stream, NULL, NULL))
g_warning ("Error reading headers, skipped");
} else {
@@ -1556,7 +1556,7 @@ pst_error_msg (const gchar *fmt, ...)
static void
pst_import_imported (PstImporter *m)
{
- e_import_complete (m->target->import, (EImportTarget *)m->target);
+ e_import_complete (m->target->import, (EImportTarget *) m->target);
}
static void
@@ -1600,7 +1600,7 @@ pst_status_timeout (gpointer data)
pc = importer->status_pc;
g_mutex_unlock (importer->status_lock);
- e_import_status (importer->target->import, (EImportTarget *)importer->target, what, pc);
+ e_import_status (importer->target->import, (EImportTarget *) importer->target, what, pc);
}
return TRUE;