From 3bd58106efb22b78e6fbabe9307880338ae92746 Mon Sep 17 00:00:00 2001 From: bertrand Date: Wed, 9 Feb 2000 20:35:35 +0000 Subject: various typo fixes in the ctree construction. 2000-02-09 bertrand * tests/ui-tests/message-browser.c: various typo fixes in the ctree construction. * camel/string-utils.c (string_trim): fix braindead trailing trim bug. * camel/gmime-content-field.c (gmime_content_field_construct_from_string): strip the leading and trailing quotes when constructing the content field. This should be done in a more generic RFC822 approach, but this fixes a bug that prevent matt from analysing some multipart messages. * camel/camel-data-wrapper.h: reorganize the deprecated and new methods. * camel/providers/mbox/camel-mbox-folder.c (_check_get_or_maybe_generate_summary_file): Use "From " as the message separating string. * camel/providers/mbox/camel-mbox-folder.c (_append_message): set the mode when creating the mbox file. * camel/providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev): ditto * camel/providers/mbox/camel-mbox-summary.c (camel_mbox_save_summary): ditto svn path=/trunk/; revision=1711 --- tests/ui-tests/message-browser.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'tests/ui-tests') diff --git a/tests/ui-tests/message-browser.c b/tests/ui-tests/message-browser.c index 39bcab4dfd..890e369c2f 100644 --- a/tests/ui-tests/message-browser.c +++ b/tests/ui-tests/message-browser.c @@ -33,11 +33,12 @@ handle_tree_item (CamelDataWrapper* object, GtkWidget* tree_ctrl) tree_item = gtk_tree_item_new_with_label (label); gtk_tree_append (GTK_TREE (tree_ctrl), tree_item); + printf ("Appending %s\n", label); if (CAMEL_IS_MULTIPART (object)) { CamelMultipart* multipart = CAMEL_MULTIPART (object); - GtkWidget* subtree; + GtkWidget* subtree = NULL; int max_multiparts = camel_multipart_get_number (multipart); int i; @@ -55,19 +56,19 @@ handle_tree_item (CamelDataWrapper* object, GtkWidget* tree_ctrl) g_print ("handling part %d\n", i); handle_tree_item (CAMEL_DATA_WRAPPER (body_part), - tree_item); + subtree); } } } -GtkWidget* +static GtkWidget* get_message_tree_ctrl (CamelMimeMessage* message) { GtkWidget* tree_ctrl = gtk_tree_new (); CamelDataWrapper* message_contents = camel_medium_get_content_object (CAMEL_MEDIUM (message)); - int i; + /* * Set up the scroll window */ @@ -109,7 +110,7 @@ static void print_usage_and_quit() { g_print ("Usage: message-browser [FILENAME]\n"); - g_print ("Where FILENAME is the filename of a mime message "); + g_print ("Where FILENAME is the filename of a mime message "); g_print ("in \"message/rfc822\" format.\n"); exit (0); } @@ -145,4 +146,6 @@ main (int argc, char *argv[]) GTK_SIGNAL_FUNC(gtk_main_quit), &app); gtk_main(); + + return 1; } -- cgit v1.2.3