From 4ec5c4b998528e2854aa52cbaf107e5b6f22ee6e Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 24 Feb 2000 16:43:09 +0000 Subject: Move "separator" from camel-store to camel-folder, since it can vary from location to location in an IMAP store. Rename CamelFolder::init_with_store to init and add parent_folder, name, and separator arguments. svn path=/trunk/; revision=1919 --- camel/providers/mbox/camel-mbox-store.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'camel/providers/mbox/camel-mbox-store.c') diff --git a/camel/providers/mbox/camel-mbox-store.c b/camel/providers/mbox/camel-mbox-store.c index 76ceed282a..d0eea3f996 100644 --- a/camel/providers/mbox/camel-mbox-store.c +++ b/camel/providers/mbox/camel-mbox-store.c @@ -52,10 +52,8 @@ camel_mbox_store_class_init (CamelMboxStoreClass *camel_mbox_store_class) static void camel_mbox_store_init (gpointer object, gpointer klass) { - CamelStore *store = CAMEL_STORE (object); CamelService *service = CAMEL_SERVICE (object); - store->separator = '/'; service->url_flags = CAMEL_SERVICE_URL_NEED_PATH; } @@ -112,8 +110,12 @@ _get_folder (CamelStore *store, const gchar *folder_name, CamelException *ex) new_mbox_folder = gtk_type_new (CAMEL_MBOX_FOLDER_TYPE); new_folder = CAMEL_FOLDER (new_mbox_folder); - CF_CLASS (new_folder)->init_with_store (new_folder, store, ex); - CF_CLASS (new_folder)->set_name (new_folder, folder_name, ex); + /* XXX We shouldn't be passing NULL here, but it's equivalent to + * what was there before, and there's no + * CamelMboxFolder::get_subfolder yet anyway... + */ + CF_CLASS (new_folder)->init (new_folder, store, NULL, + folder_name, '/', ex); CAMEL_LOG_FULL_DEBUG ("Leaving CamelMboxStore::get_folder\n"); -- cgit v1.2.3