aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ui-tests
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-08-13 05:01:07 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-13 05:01:07 +0800
commit1c721c4abb74d443b0a0bc0893e11716a348c846 (patch)
treed90dd8f5cd58b05668c04fb1396118cb11e16fb5 /tests/ui-tests
parent96b7f9a5fd8eaafc7b79ef8761a5b2ff15850b4c (diff)
downloadgsoc2013-evolution-1c721c4abb74d443b0a0bc0893e11716a348c846.tar
gsoc2013-evolution-1c721c4abb74d443b0a0bc0893e11716a348c846.tar.gz
gsoc2013-evolution-1c721c4abb74d443b0a0bc0893e11716a348c846.tar.bz2
gsoc2013-evolution-1c721c4abb74d443b0a0bc0893e11716a348c846.tar.lz
gsoc2013-evolution-1c721c4abb74d443b0a0bc0893e11716a348c846.tar.xz
gsoc2013-evolution-1c721c4abb74d443b0a0bc0893e11716a348c846.tar.zst
gsoc2013-evolution-1c721c4abb74d443b0a0bc0893e11716a348c846.zip
remove stupid debug code. (add_mail_store): use camel_session_get_store
1999-08-12 bertrand <Bertrand.Guiheneuf@aful.org> * tests/ui-tests/store_listing.c (show_folder_messages): remove stupid debug code. (add_mail_store): use camel_session_get_store instead of creating MH store directly. (main): load MH provider. * camel/camel-provider.c (camel_provider_register_as_module): register new provider. (camel_provider_get_for_protocol): Now, implementation is correct. * camel/camel-store.c (_finalize): * camel/camel-store.h (struct _CamelStore): further disabled url_name field use. URL will be generated dynamically. Ben dam don dieu, vla t'y pas que ya tout le bourier qui marche ! (Autoload store/protocol from URL works) svn path=/trunk/; revision=1108
Diffstat (limited to 'tests/ui-tests')
-rw-r--r--tests/ui-tests/store_listing.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/ui-tests/store_listing.c b/tests/ui-tests/store_listing.c
index 2f73921ad6..a9f1d875cd 100644
--- a/tests/ui-tests/store_listing.c
+++ b/tests/ui-tests/store_listing.c
@@ -16,6 +16,8 @@
#include "camel.h"
static GladeXML *xml;
+static CamelSession *_session;
+
static void add_mail_store (const gchar *store_url);
static void show_folder_messages (CamelFolder *folder);
@@ -88,9 +90,7 @@ show_folder_messages (CamelFolder *folder)
current_row = gtk_clist_append (GTK_CLIST (message_clist), clist_row_text);
gtk_clist_set_row_data_full (GTK_CLIST (message_clist), current_row, (gpointer)message, message_destroy_notify);
}
- for (i=0; i<10; i++)
- gtk_clist_append (GTK_CLIST (message_clist), clist_row_text);
-
+
}
@@ -112,12 +112,10 @@ add_mail_store (const gchar *store_url)
CamelFolder *new_folder;
- /* normally the store type is found automatically
- with the URL, this is not implemented for
- the moment */
- store = gtk_type_new (CAMEL_MH_STORE_TYPE);
- camel_store_init (store, (CamelSession *)NULL, g_strdup (store_url));
-
+
+ store = camel_session_get_store (_session, store_url);
+ if (!store) return;
+
//store_list = g_list_append (store_list, (gpointer)store);
mailbox_and_store_tree = glade_xml_get_widget (xml, "store-and-mailbox-tree");
new_tree_text[0] = g_strdup (store_url);
@@ -216,7 +214,9 @@ main(int argc, char *argv[])
camel_init ();
xml = glade_xml_new ("store_listing.glade", NULL);
if (xml) glade_xml_signal_autoconnect (xml);
-
+
+ _session = camel_session_new ();
+ camel_provider_register_as_module ("../../camel/providers/MH/.libs/libcamelmh.so");
gtk_main ();