aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-07-19 02:05:05 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-07-19 02:05:38 +0800
commitdcf2c0e754d6e251733cea74c2427738122620af (patch)
tree358d2c639c2a5b5cf5fc8f28c515076f8b4d4e5d /mail
parent76fc1247ba88575c0f6e0040672e19e66f53da4f (diff)
downloadgsoc2013-evolution-dcf2c0e754d6e251733cea74c2427738122620af.tar.gz
gsoc2013-evolution-dcf2c0e754d6e251733cea74c2427738122620af.tar.zst
gsoc2013-evolution-dcf2c0e754d6e251733cea74c2427738122620af.zip
More whitespace cleanup.
Diffstat (limited to 'mail')
-rw-r--r--mail/em-account-prefs.c8
-rw-r--r--mail/em-composer-utils.c2
-rw-r--r--mail/em-filter-folder-element.c2
-rw-r--r--mail/em-folder-browser.c8
-rw-r--r--mail/em-folder-tree.c2
-rw-r--r--mail/em-folder-utils.c2
-rw-r--r--mail/em-folder-view.c2
-rw-r--r--mail/em-format-html-display.c10
-rw-r--r--mail/em-format-html.c2
-rw-r--r--mail/em-inline-filter.c2
-rw-r--r--mail/em-utils.c16
-rw-r--r--mail/em-vfolder-rule.c6
-rw-r--r--mail/mail-mt.c2
-rw-r--r--mail/mail-ops.c2
-rw-r--r--mail/mail-send-recv.c4
-rw-r--r--mail/mail-vfolder.c2
-rw-r--r--mail/message-list.c16
17 files changed, 44 insertions, 44 deletions
diff --git a/mail/em-account-prefs.c b/mail/em-account-prefs.c
index 535fbd277f..1d475c0e5d 100644
--- a/mail/em-account-prefs.c
+++ b/mail/em-account-prefs.c
@@ -147,7 +147,7 @@ account_add_clicked (GtkButton *button, gpointer user_data)
emae = em_account_editor_new(NULL, EMAE_DRUID, "org.gnome.evolution.mail.config.accountDruid");
prefs->druid = emae->editor;
- gtk_window_set_transient_for((GtkWindow *)prefs->druid, (GtkWindow *)gtk_widget_get_toplevel((GtkWidget *)prefs));
+ gtk_window_set_transient_for ((GtkWindow *)prefs->druid, (GtkWindow *)gtk_widget_get_toplevel((GtkWidget *)prefs));
g_object_ref(prefs);
/* rather nasty hack to reload the accounts, it should just listen to the e-account-list */
g_object_weak_ref((GObject *) prefs->druid, (GWeakNotify) account_add_finished, prefs);
@@ -197,7 +197,7 @@ account_edit_clicked (GtkButton *button, gpointer user_data)
emae = em_account_editor_new(account, EMAE_NOTEBOOK, "org.gnome.evolution.mail.config.accountEditor");
prefs->editor = emae->editor;
- gtk_window_set_transient_for((GtkWindow *)prefs->editor, (GtkWindow *)gtk_widget_get_toplevel((GtkWidget *)prefs));
+ gtk_window_set_transient_for ((GtkWindow *)prefs->editor, (GtkWindow *)gtk_widget_get_toplevel((GtkWidget *)prefs));
g_object_ref(prefs);
/* rather nasty hack to reload the accounts, it should just listen to the e-account-list */
g_object_weak_ref((GObject *)prefs->editor, (GWeakNotify) account_edit_finished, prefs);
@@ -379,12 +379,12 @@ account_cursor_change (GtkTreeSelection *selection, EMAccountPrefs *prefs)
gtk_widget_set_sensitive (GTK_WIDGET (prefs), FALSE);
}
- if( url != NULL )
+ if ( url != NULL )
gtk_widget_set_sensitive (GTK_WIDGET (prefs->mail_edit), !mail_config_has_proxies(account));
gtk_widget_set_sensitive (GTK_WIDGET (prefs->mail_delete), state);
- if(account == default_account)
+ if (account == default_account)
gtk_widget_set_sensitive (GTK_WIDGET (prefs->mail_default), FALSE);
else
gtk_widget_set_sensitive (GTK_WIDGET (prefs->mail_default), state);
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 402a6d2ca1..a97b1cc8d7 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -1511,7 +1511,7 @@ em_utils_send_receipt (CamelFolder *folder, CamelMimeMessage *message)
camel_object_unref (addr);
camel_medium_set_header (CAMEL_MEDIUM (receipt), "Return-Path", "<>");
- if(account) {
+ if (account) {
camel_medium_set_header (CAMEL_MEDIUM (receipt),
"X-Evolution-Account", account->uid);
camel_medium_set_header (CAMEL_MEDIUM (receipt),
diff --git a/mail/em-filter-folder-element.c b/mail/em-filter-folder-element.c
index b531780287..9c87c166c9 100644
--- a/mail/em-filter-folder-element.c
+++ b/mail/em-filter-folder-element.c
@@ -212,7 +212,7 @@ xml_decode(FilterElement *fe, xmlNodePtr node)
}
n = node->children;
- while(n) {
+ while (n) {
if (!strcmp((gchar *)n->name, "folder")) {
gchar *uri;
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c
index c6c90caffb..0574de0bcb 100644
--- a/mail/em-folder-browser.c
+++ b/mail/em-folder-browser.c
@@ -877,11 +877,11 @@ emfb_search_config_search(EFilterBar *efb, FilterRule *rule, gint id, const gcha
for (i=0;i<words->len;i++)
strings = g_slist_prepend(strings, g_strdup(words->words[i]->word));
camel_search_words_free (words);
- } else if(!strcmp(part->name, "sender")) {
+ } else if (!strcmp(part->name, "sender")) {
FilterInput *input = (FilterInput *)filter_part_find_element(part, "sender");
if (input)
filter_input_set_value(input, query);
- } else if(!strcmp(part->name, "to")) {
+ } else if (!strcmp(part->name, "to")) {
FilterInput *input = (FilterInput *)filter_part_find_element(part, "recipient");
if (input)
filter_input_set_value(input, query);
@@ -1652,7 +1652,7 @@ emfb_mark_all_read(BonoboUIComponent *uid, gpointer data, const gchar *path)
if (emfv->folder == NULL)
return;
- if( em_utils_prompt_user((GtkWindow *)emfv, "/apps/evolution/mail/prompts/mark_all_read","mail:ask-mark-all-read", NULL)){
+ if ( em_utils_prompt_user((GtkWindow *)emfv, "/apps/evolution/mail/prompts/mark_all_read","mail:ask-mark-all-read", NULL)) {
uids = message_list_get_uids(emfv->list);
camel_folder_freeze(emfv->folder);
for (i=0;i<uids->len;i++)
@@ -1727,7 +1727,7 @@ emfb_tools_subscriptions(BonoboUIComponent *uid, gpointer data, const gchar *pat
gdk_window_show(emfb->priv->subscribe_editor->window);
} else {
emfb->priv->subscribe_editor = (GtkWidget *)em_subscribe_editor_new();
- e_dialog_set_transient_for((GtkWindow *)emfb->priv->subscribe_editor, (GtkWidget *)emfb);
+ e_dialog_set_transient_for ((GtkWindow *)emfb->priv->subscribe_editor, (GtkWidget *)emfb);
g_signal_connect(emfb->priv->subscribe_editor, "destroy", G_CALLBACK(emfb_subscribe_editor_destroy), emfb);
gtk_widget_show(emfb->priv->subscribe_editor);
}
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 2c9629d362..b13a47a0e0 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -2453,7 +2453,7 @@ em_folder_tree_select_prev_path (EMFolderTree *emft, gboolean skip_read_folders)
selection = gtk_tree_view_get_selection(emft->priv->treeview);
- if (gtk_tree_selection_get_selected(selection, &model, &iter)){
+ if (gtk_tree_selection_get_selected(selection, &model, &iter)) {
current_path = gtk_tree_model_get_path (model, &iter);
do {
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c
index 7a23cb5f0c..528802c052 100644
--- a/mail/em-folder-utils.c
+++ b/mail/em-folder-utils.c
@@ -611,7 +611,7 @@ static void
new_folder_created_cb (CamelFolderInfo *fi, gpointer user_data)
{
struct _EMCreateFolderTempData *emcftd=user_data;
- if (fi){
+ if (fi) {
gtk_widget_destroy ((GtkWidget *) emcftd->emfs);
/* Exapnding newly created folder */
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c
index 3025031909..de87a10ed0 100644
--- a/mail/em-folder-view.c
+++ b/mail/em-folder-view.c
@@ -2969,7 +2969,7 @@ emfv_setting_notify(GConfClient *gconf, guint cnxn_id, GConfEntry *entry, EMFold
tkey = strrchr(entry->key, '/');
g_return_if_fail (tkey != NULL);
- switch(GPOINTER_TO_INT(g_hash_table_lookup(emfv_setting_key, tkey+1))) {
+ switch (GPOINTER_TO_INT(g_hash_table_lookup(emfv_setting_key, tkey+1))) {
case EMFV_ANIMATE_IMAGES:
em_format_html_display_set_animate(emfv->preview, gconf_value_get_bool (value));
break;
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 48595582da..312e5a1fb5 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -333,13 +333,13 @@ em_format_html_display_get_type (void)
static gboolean
efhd_scroll_event(GtkWidget *w, GdkEventScroll *event, EMFormatHTMLDisplay *efhd)
{
- if(event->state & GDK_CONTROL_MASK)
+ if (event->state & GDK_CONTROL_MASK)
{
- if(event->direction == GDK_SCROLL_UP)
+ if (event->direction == GDK_SCROLL_UP)
{
gtk_html_zoom_in (efhd->formathtml.html);
}
- else if(event->direction == GDK_SCROLL_DOWN)
+ else if (event->direction == GDK_SCROLL_DOWN)
{
gtk_html_zoom_out (efhd->formathtml.html);
}
@@ -640,7 +640,7 @@ efhd_xpkcs7mime_viewcert_clicked(GtkWidget *button, struct _smime_pobject *po)
g_signal_connect(w, "response", G_CALLBACK(efhd_xpkcs7mime_viewcert_foad), po);
if (w && po->widget)
- gtk_window_set_transient_for((GtkWindow *)w, (GtkWindow *)po->widget);
+ gtk_window_set_transient_for ((GtkWindow *)w, (GtkWindow *)po->widget);
g_object_unref(ec);
} else {
@@ -1300,7 +1300,7 @@ efhd_image_fit_width(GtkWidget *widget, GdkEventButton *event, struct _attach_pu
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)) {
- if(info->fit_width != width) {
+ if (info->fit_width != width) {
info->fit_width = width;
e_cursor_set (widget->window, E_CURSOR_ZOOM_IN);
} else {
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index d769127705..ec3427c88d 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -1904,7 +1904,7 @@ efh_format_headers(EMFormatHTML *efh, CamelStream *stream, CamelMedium *part)
if (header_sender && header_from && mail_from_delegate) {
camel_stream_printf(stream, "<tr><td><table border=1 width=\"100%%\" cellspacing=2 cellpadding=2><tr>");
- if(gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL)
+ if (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL)
camel_stream_printf (stream, "<td align=\"right\" width=\"100%%\">");
else
camel_stream_printf (stream, "<td align=\"left\" width=\"100%%\">");
diff --git a/mail/em-inline-filter.c b/mail/em-inline-filter.c
index 7ff92fae5e..1adfb52980 100644
--- a/mail/em-inline-filter.c
+++ b/mail/em-inline-filter.c
@@ -213,7 +213,7 @@ emif_scan(CamelMimeFilter *f, gchar *in, gsize len, gint final)
*inptr++ = 0;
- switch(emif->state) {
+ switch (emif->state) {
case EMIF_PLAIN:
/* This could use some funky plugin shit, but this'll do for now */
if (strncmp(start, "begin ", 6) == 0
diff --git a/mail/em-utils.c b/mail/em-utils.c
index b1cc782b4c..5544a7d403 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -199,7 +199,7 @@ em_utils_configure_account (GtkWidget *parent)
emae = em_account_editor_new(NULL, EMAE_DRUID, "org.gnome.evolution.mail.config.accountDruid");
if (parent != NULL)
- e_dialog_set_transient_for((GtkWindow *)emae->editor, parent);
+ e_dialog_set_transient_for ((GtkWindow *)emae->editor, parent);
g_object_weak_ref((GObject *)emae->editor, (GWeakNotify) druid_destroy_cb, NULL);
gtk_widget_show(emae->editor);
@@ -338,7 +338,7 @@ em_filename_make_safe (gchar *string)
g_return_if_fail (string != NULL);
p = string;
- while(p && *p) {
+ while (p && *p) {
c = g_utf8_get_char (p);
ts = p;
p = g_utf8_next_char (p);
@@ -708,7 +708,7 @@ emu_add_address_or_vcard (GtkWidget *parent, const gchar *email, const gchar *vc
}
if (parent)
- gtk_window_set_transient_for((GtkWindow *)win, ((GtkWindow *)parent));
+ gtk_window_set_transient_for ((GtkWindow *)win, ((GtkWindow *)parent));
gtk_window_set_position((GtkWindow *)win, GTK_WIN_POS_CENTER_ON_PARENT);
gtk_window_set_type_hint((GtkWindow *)win, GDK_WINDOW_TYPE_HINT_DIALOG);
@@ -2203,12 +2203,12 @@ em_utils_contact_photo (CamelInternetAddress *cia, gboolean local)
EBook *book = NULL;
CamelMimePart *part;
- if (cia == NULL || !camel_internet_address_get(cia, 0, NULL, &addr)){
+ if (cia == NULL || !camel_internet_address_get(cia, 0, NULL, &addr)) {
return NULL;
}
- if (!emu_addr_list){
- if (!e_book_get_addressbooks(&emu_addr_list, &err)){
+ if (!emu_addr_list) {
+ if (!e_book_get_addressbooks(&emu_addr_list, &err)) {
g_error_free(err);
return NULL;
}
@@ -2409,7 +2409,7 @@ void
em_utils_show_error_silent (GtkWidget *widget)
{
EActivityHandler *handler = mail_component_peek_activity_handler (mail_component_peek ());
- if(!g_object_get_data ((GObject *) widget, "response-handled"))
+ if (!g_object_get_data ((GObject *) widget, "response-handled"))
g_signal_connect(widget, "response", G_CALLBACK(error_response), NULL);
e_activity_handler_make_error (handler, "mail", E_LOG_ERROR, widget);
}
@@ -2418,7 +2418,7 @@ void
em_utils_show_info_silent (GtkWidget *widget)
{
EActivityHandler *handler = mail_component_peek_activity_handler (mail_component_peek ());
- if(!g_object_get_data ((GObject *) widget, "response-handled"))
+ if (!g_object_get_data ((GObject *) widget, "response-handled"))
g_signal_connect(widget, "response", G_CALLBACK(error_response), NULL);
e_activity_handler_make_error (handler, "mail", E_LOG_WARNINGS, widget);
}
diff --git a/mail/em-vfolder-rule.c b/mail/em-vfolder-rule.c
index f2cc7cb57f..7f78c06079 100644
--- a/mail/em-vfolder-rule.c
+++ b/mail/em-vfolder-rule.c
@@ -281,7 +281,7 @@ set_with(EMVFolderRule *vr, const gchar *name)
{
gint i;
- for(i=0;i<sizeof(with_names)/sizeof(with_names[0]);i++) {
+ for (i=0;i<sizeof(with_names)/sizeof(with_names[0]);i++) {
if (!strcmp(name, with_names[i])) {
vr->with = i;
return;
@@ -511,7 +511,7 @@ source_add(GtkWidget *widget, struct _source_data *data)
em_folder_tree_set_excluded(emft, EMFT_EXCLUDE_NOSELECT);
dialog = em_folder_selector_new(emft, EM_FOLDER_SELECTOR_CAN_CREATE, _("Select Folder"), NULL, _("_Add"));
- gtk_window_set_transient_for((GtkWindow *)dialog, (GtkWindow *)gtk_widget_get_toplevel(widget));
+ gtk_window_set_transient_for ((GtkWindow *)dialog, (GtkWindow *)gtk_widget_get_toplevel(widget));
gtk_window_set_modal((GtkWindow *)dialog, TRUE);
g_signal_connect(dialog, "response", G_CALLBACK(vfr_folder_response), data);
gtk_widget_show(dialog);
@@ -637,7 +637,7 @@ get_widget(FilterRule *fr, RuleContext *rc)
g_object_set_data_full((GObject *)frame, "data", data, g_free);
- for(i = 0; i < BUTTON_LAST; i++) {
+ for (i = 0; i < BUTTON_LAST; i++) {
data->buttons[i] =(GtkButton *)glade_xml_get_widget(gui, edit_buttons[i].name);
g_signal_connect(data->buttons[i], "clicked", edit_buttons[i].func, data);
}
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index 9ad326f682..067c0430ec 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -793,7 +793,7 @@ do_call(struct _call_msg *m)
G_VA_COPY(ap, m->ap);
- switch(m->type) {
+ switch (m->type) {
case MAIL_CALL_p_p:
p1 = va_arg(ap, gpointer );
m->ret = m->func(p1);
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 118de487bb..04d08cef13 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -2180,7 +2180,7 @@ save_part_exec (struct _save_part_msg *m)
else
path = g_filename_to_uri (m->path, NULL, NULL);
- if(!m->readonly){
+ if (!m->readonly) {
if (!(stream = camel_stream_vfs_new_with_uri (path, CAMEL_STREAM_VFS_CREATE))) {
camel_exception_setv (&m->base.ex, CAMEL_EXCEPTION_SYSTEM,
_("Cannot create output file: %s:\n %s"),
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index 8411290222..68bad60576 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -236,7 +236,7 @@ dialog_destroy_cb (struct _send_data *data, GObject *deadbeef)
static void
dialog_response(GtkDialog *gd, gint button, struct _send_data *data)
{
- switch(button) {
+ switch (button) {
case GTK_RESPONSE_CANCEL:
d(printf("cancelled whole thing\n"));
if (!data->cancelled) {
@@ -937,7 +937,7 @@ mail_send_receive (void)
while (scan) {
struct _send_info *info = scan->data;
- switch(info->type) {
+ switch (info->type) {
case SEND_RECEIVE:
mail_fetch_mail(info->uri, info->keep_on_server,
FILTER_SOURCE_INCOMING,
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c
index 0f49f32cae..e995589fe2 100644
--- a/mail/mail-vfolder.c
+++ b/mail/mail-vfolder.c
@@ -998,7 +998,7 @@ em_vfolder_editor_response (GtkWidget *dialog, gint button, gpointer data)
user = g_strdup_printf ("%s/vfolders.xml", mail_component_peek_base_directory (mail_component_peek ()));
- switch(button) {
+ switch (button) {
case GTK_RESPONSE_OK:
rule_context_save((RuleContext *)context, user);
break;
diff --git a/mail/message-list.c b/mail/message-list.c
index b222de4bb1..6c8d529464 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -913,7 +913,7 @@ ml_get_node_by_id (ETreeModel *etm, const gchar *save_id, gpointer data)
static gpointer
ml_duplicate_value (ETreeModel *etm, gint col, gconstpointer value, gpointer data)
{
- switch (col){
+ switch (col) {
case COL_MESSAGE_STATUS:
case COL_FLAGGED:
case COL_SCORE:
@@ -947,7 +947,7 @@ ml_duplicate_value (ETreeModel *etm, gint col, gconstpointer value, gpointer dat
static void
ml_free_value (ETreeModel *etm, gint col, gpointer value, gpointer data)
{
- switch (col){
+ switch (col) {
case COL_MESSAGE_STATUS:
case COL_FLAGGED:
case COL_SCORE:
@@ -981,7 +981,7 @@ ml_free_value (ETreeModel *etm, gint col, gpointer value, gpointer data)
static gpointer
ml_initialize_value (ETreeModel *etm, gint col, gpointer data)
{
- switch (col){
+ switch (col) {
case COL_MESSAGE_STATUS:
case COL_FLAGGED:
case COL_SCORE:
@@ -1016,7 +1016,7 @@ ml_initialize_value (ETreeModel *etm, gint col, gpointer data)
static gboolean
ml_value_is_empty (ETreeModel *etm, gint col, gconstpointer value, gpointer data)
{
- switch (col){
+ switch (col) {
case COL_MESSAGE_STATUS:
case COL_FLAGGED:
case COL_SCORE:
@@ -1071,7 +1071,7 @@ ml_value_to_string (ETreeModel *etm, gint col, gconstpointer value, gpointer dat
{
guint i;
- switch (col){
+ switch (col) {
case COL_MESSAGE_STATUS:
i = GPOINTER_TO_UINT(value);
if (i > 5)
@@ -1340,7 +1340,7 @@ ml_tree_value_at (ETreeModel *etm, ETreePath path, gint col, gpointer model_data
msg_info = e_tree_memory_node_get_data (E_TREE_MEMORY(etm), path);
g_return_val_if_fail (msg_info != NULL, NULL);
- switch (col){
+ switch (col) {
case COL_MESSAGE_STATUS:
flags = camel_message_info_flags(msg_info);
if (flags & CAMEL_MESSAGE_ANSWERED)
@@ -1532,7 +1532,7 @@ ml_tree_value_at (ETreeModel *etm, ETreePath path, gint col, gpointer model_data
case COL_SENDER:{
gchar **sender_name = NULL;
str = camel_message_info_from (msg_info);
- if(str && str[0] != '\0'){
+ if (str && str[0] != '\0') {
gchar *res;
sender_name = g_strsplit (str,"<",2);
res = g_strdup (*sender_name);
@@ -3736,7 +3736,7 @@ glib_crapback(gpointer key, gpointer data, gpointer x)
struct _glibsuxcrap *y = x;
CamelMessageInfo *mi;
- if(y->count)
+ if (y->count)
return;
mi = camel_folder_get_message_info(y->folder, key);