aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--tests/ui-tests/.cvsignore1
-rw-r--r--tests/ui-tests/message-browser.c22
3 files changed, 12 insertions, 17 deletions
diff --git a/ChangeLog b/ChangeLog
index 9da41f5108..f21bc40dc2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-02-19 Matt Loper <matt@helixcode.com>
+
+ * tests/ui-tests/message-browser.c: minor cleanup.
+
+ * tests/ui-tests/.cvsignore: added message-browser.
+
2000-02-18 NotZed <NotZed@HelixCode.com>
* tests/test11.c (main): Use a relative path to the mbox provider
diff --git a/tests/ui-tests/.cvsignore b/tests/ui-tests/.cvsignore
index 10c9ca5909..1306f0397b 100644
--- a/tests/ui-tests/.cvsignore
+++ b/tests/ui-tests/.cvsignore
@@ -4,3 +4,4 @@ Makefile
.libs
store_listing
msg-composer-test
+message-browser
diff --git a/tests/ui-tests/message-browser.c b/tests/ui-tests/message-browser.c
index be96abb193..597721b901 100644
--- a/tests/ui-tests/message-browser.c
+++ b/tests/ui-tests/message-browser.c
@@ -59,24 +59,17 @@ handle_tree_item (CamelDataWrapper* object, GtkWidget* tree_ctrl)
tree_item = gtk_tree_item_new_with_label (label);
gtk_object_set_data (GTK_OBJECT (tree_item),
"camel_data_wrapper", object);
-
gtk_tree_append (GTK_TREE (tree_ctrl), tree_item);
gtk_widget_show(tree_item);
- /* Check if our object is a container */
+ /* If our object is a leaf, we're done */
if (!CAMEL_IS_MEDIUM (object))
return;
-
- {
- g_print ("camel is%s a mime part\n",
- CAMEL_IS_MIME_PART (object)?"":"n't");
- containee =
- camel_medium_get_content_object (
- CAMEL_MEDIUM (object));
- }
-
+ containee =
+ camel_medium_get_content_object (
+ CAMEL_MEDIUM (object));
g_assert (containee);
@@ -90,7 +83,6 @@ handle_tree_item (CamelDataWrapper* object, GtkWidget* tree_ctrl)
gtk_object_set_data (GTK_OBJECT (containee_tree_item),
"camel_data_wrapper",
containee);
-
gtk_tree_append (GTK_TREE (subtree), containee_tree_item);
gtk_tree_item_set_subtree (GTK_TREE_ITEM(tree_item),
@@ -105,9 +97,6 @@ handle_tree_item (CamelDataWrapper* object, GtkWidget* tree_ctrl)
camel_multipart_get_number (multipart);
int i;
- g_print ("found a multipart w/ %d parts\n",
- max_multiparts);
-
if (max_multiparts > 0) {
subtree = gtk_tree_new();
gtk_tree_item_set_subtree (
@@ -120,7 +109,6 @@ handle_tree_item (CamelDataWrapper* object, GtkWidget* tree_ctrl)
camel_multipart_get_part (
multipart, i);
- g_print ("handling part %d\n", i);
handle_tree_item (
CAMEL_DATA_WRAPPER (body_part),
GTK_WIDGET (subtree));
@@ -568,7 +556,7 @@ main (int argc, char *argv[])
&app);
if (!message)
file_menu_open_cb (NULL, NULL);
- g_message ("hi world");
+
gtk_main();
return 1;