From 1c721c4abb74d443b0a0bc0893e11716a348c846 Mon Sep 17 00:00:00 2001 From: bertrand Date: Thu, 12 Aug 1999 21:01:07 +0000 Subject: remove stupid debug code. (add_mail_store): use camel_session_get_store 1999-08-12 bertrand * 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 --- camel/camel-store.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'camel/camel-store.c') diff --git a/camel/camel-store.c b/camel/camel-store.c index 209a03d101..8b3a05d624 100644 --- a/camel/camel-store.c +++ b/camel/camel-store.c @@ -125,10 +125,9 @@ _init (CamelStore *store, CamelSession *session, const gchar *url_name) { #warning re-enable assertion here. - /* g_assert(session); */ + g_assert(session); g_assert(url_name); - if (store->session) gtk_object_unref (GTK_OBJECT (store->session)); store->session = session; gtk_object_ref (GTK_OBJECT (session)); /*store->url_name = url_name;*/ @@ -141,7 +140,7 @@ _finalize (GtkObject *object) CamelStore *camel_store = CAMEL_STORE (object); CAMEL_LOG_FULL_DEBUG ("Entering CamelStore::finalize\n"); - if (camel_store->url_name) g_free (camel_store->url_name); + /* if (camel_store->url_name) g_free (camel_store->url_name); */ if (camel_store->session) gtk_object_unref (GTK_OBJECT (camel_store->session)); GTK_OBJECT_CLASS (parent_class)->finalize (object); -- cgit