aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ui-tests/message-browser.c
diff options
context:
space:
mode:
authorMatthew Loper <mloper@src.gnome.org>2000-02-20 04:16:42 +0800
committerMatthew Loper <mloper@src.gnome.org>2000-02-20 04:16:42 +0800
commit5f5fce064240f4c87b49eb0038c2509cbcd19a38 (patch)
tree2f54f5980b0c2516459f8c2219fe705f5cde89f3 /tests/ui-tests/message-browser.c
parent74a58886f61378f2e7eded88c33759af28a5d4f8 (diff)
downloadgsoc2013-evolution-5f5fce064240f4c87b49eb0038c2509cbcd19a38.tar
gsoc2013-evolution-5f5fce064240f4c87b49eb0038c2509cbcd19a38.tar.gz
gsoc2013-evolution-5f5fce064240f4c87b49eb0038c2509cbcd19a38.tar.bz2
gsoc2013-evolution-5f5fce064240f4c87b49eb0038c2509cbcd19a38.tar.lz
gsoc2013-evolution-5f5fce064240f4c87b49eb0038c2509cbcd19a38.tar.xz
gsoc2013-evolution-5f5fce064240f4c87b49eb0038c2509cbcd19a38.tar.zst
gsoc2013-evolution-5f5fce064240f4c87b49eb0038c2509cbcd19a38.zip
minor cleanup.
* tests/ui-tests/message-browser.c: minor cleanup. * tests/ui-tests/.cvsignore: added message-browser. svn path=/trunk/; revision=1858
Diffstat (limited to 'tests/ui-tests/message-browser.c')
-rw-r--r--tests/ui-tests/message-browser.c22
1 files changed, 5 insertions, 17 deletions
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;