From fa360fde289f9b850191f89059d1a5e6d67c07c7 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 18 Jul 2009 14:07:42 -0400 Subject: More whitespace cleanup. --- mail/em-composer-utils.c | 2 +- mail/em-filter-folder-element.c | 2 +- mail/em-folder-tree.c | 2 +- mail/em-folder-utils.c | 2 +- mail/em-folder-view.c | 2 +- mail/em-format-html-display.c | 4 ++-- mail/em-format-html.c | 2 +- mail/em-inline-filter.c | 2 +- mail/em-utils.c | 10 +++++----- mail/em-vfolder-rule.c | 6 +++--- mail/mail-mt.c | 2 +- mail/mail-ops.c | 2 +- mail/mail-send-recv.c | 4 ++-- mail/message-list.c | 16 ++++++++-------- 14 files changed, 29 insertions(+), 29 deletions(-) (limited to 'mail') diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index 472d499b06..8370496c19 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -1516,7 +1516,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 7b64ef9aa6..4af699d583 100644 --- a/mail/em-filter-folder-element.c +++ b/mail/em-filter-folder-element.c @@ -211,7 +211,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-tree.c b/mail/em-folder-tree.c index f298d19629..cadb8fee65 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -2239,7 +2239,7 @@ em_folder_tree_select_prev_path (EMFolderTree *emft, gboolean skip_read_folders) tree_view = GTK_TREE_VIEW (emft); selection = gtk_tree_view_get_selection (tree_view); - 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 904e3908ce..e483942885 100644 --- a/mail/em-folder-utils.c +++ b/mail/em-folder-utils.c @@ -621,7 +621,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 26ebac670f..1b5bd1b63c 100644 --- a/mail/em-folder-view.c +++ b/mail/em-folder-view.c @@ -972,7 +972,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_CHARSET: em_format_set_default_charset((EMFormat *)emfv->preview, gconf_value_get_string (value)); break; diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c index 375eadafe2..270db0e698 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -223,7 +223,7 @@ efhd_xpkcs7mime_viewcert_clicked (GtkWidget *button, g_signal_connect(w, "response", G_CALLBACK(gtk_widget_destroy), NULL); 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 { @@ -1105,7 +1105,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 31c4cf0e88..fa713282c1 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -2477,7 +2477,7 @@ efh_format_headers(EMFormatHTML *efh, CamelStream *stream, CamelMedium *part) if (header_sender && header_from && mail_from_delegate) { camel_stream_printf(stream, ""); - if(gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL) + if (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL) camel_stream_printf (stream, "
"); else camel_stream_printf (stream, ""); diff --git a/mail/em-inline-filter.c b/mail/em-inline-filter.c index 2b68ed65b9..5daae1109b 100644 --- a/mail/em-inline-filter.c +++ b/mail/em-inline-filter.c @@ -214,7 +214,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 b47b934ee2..da0e3e2a57 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -328,7 +328,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); @@ -696,7 +696,7 @@ emu_add_address_or_vcard (GtkWindow *parent, const gchar *email, const gchar *vc win = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title((GtkWindow *)win, _("Add address")); - gtk_window_set_transient_for((GtkWindow *)win, parent); + gtk_window_set_transient_for ((GtkWindow *)win, 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); @@ -2146,12 +2146,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; } diff --git a/mail/em-vfolder-rule.c b/mail/em-vfolder-rule.c index 4d690115ac..c357065414 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;iwith = 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 eb14674117..93fb40aad6 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -796,7 +796,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 eb3fd0cb00..74cf74aeca 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -2190,7 +2190,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 323d21f4d7..39fc67e614 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -241,7 +241,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) { @@ -955,7 +955,7 @@ mail_send_receive (GtkWindow *parent) 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/message-list.c b/mail/message-list.c index d3db1f37ba..8f96a27f55 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -927,7 +927,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: @@ -961,7 +961,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: @@ -995,7 +995,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: @@ -1030,7 +1030,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: @@ -1085,7 +1085,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) @@ -1425,7 +1425,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) @@ -1616,7 +1616,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); @@ -3912,7 +3912,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); -- cgit