diff options
author | bertrand <Bertrand.Guiheneuf@aful.org> | 2000-02-10 04:35:35 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 2000-02-10 04:35:35 +0800 |
commit | 3bd58106efb22b78e6fbabe9307880338ae92746 (patch) | |
tree | 6f54c6597f461a01d0750232d3c0f1ca423389a1 /tests/ui-tests | |
parent | 4c87a79aa40f9fccc40f036b8e182122914cadb0 (diff) | |
download | gsoc2013-evolution-3bd58106efb22b78e6fbabe9307880338ae92746.tar gsoc2013-evolution-3bd58106efb22b78e6fbabe9307880338ae92746.tar.gz gsoc2013-evolution-3bd58106efb22b78e6fbabe9307880338ae92746.tar.bz2 gsoc2013-evolution-3bd58106efb22b78e6fbabe9307880338ae92746.tar.lz gsoc2013-evolution-3bd58106efb22b78e6fbabe9307880338ae92746.tar.xz gsoc2013-evolution-3bd58106efb22b78e6fbabe9307880338ae92746.tar.zst gsoc2013-evolution-3bd58106efb22b78e6fbabe9307880338ae92746.zip |
various typo fixes in the ctree construction.
2000-02-09 bertrand <Bertrand.Guiheneuf@aful.org>
* 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
Diffstat (limited to 'tests/ui-tests')
-rw-r--r-- | tests/ui-tests/message-browser.c | 13 |
1 files changed, 8 insertions, 5 deletions
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; } |