aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/MH/camel-mh-store.c
diff options
context:
space:
mode:
authorBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-03 23:37:35 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-03 23:37:35 +0800
commitb9daf0016bc3d7244ced57dd88f63c1fd6debbac (patch)
treee18a41319d59b4243960952410456a97948748d3 /camel/providers/MH/camel-mh-store.c
parent382308f44a4ab93659f9f54c8dac2c2cc381a471 (diff)
downloadgsoc2013-evolution-b9daf0016bc3d7244ced57dd88f63c1fd6debbac.tar.gz
gsoc2013-evolution-b9daf0016bc3d7244ced57dd88f63c1fd6debbac.tar.zst
gsoc2013-evolution-b9daf0016bc3d7244ced57dd88f63c1fd6debbac.zip
new public functions (_set_name): set full_path.
* camel/camel-folder.c (camel_folder_set_name): (camel_folder_get_name): new public functions (_set_name): set full_path. (_set_full_name): (camel_folder_set_full_name): commented out this functions def. It would make things very difficult to handle, and would not be very useful. * camel/providers/MH/camel-mh-store.h: * camel/providers/MH/camel-mh-store.c (camel_mh_store_set_toplevel_dir): (camel_mh_store_get_toplevel_dir): * camel/providers/MH/camel-mh-folder.c (_set_name): * camel/providers/MH/camel-mh-folder.h: use (gchar *) instead of (GString *) everywhere. use const when necessary. * camel/camel-folder.h (struct _CamelFolder): removed unused message_list field. svn path=/trunk/; revision=1072
Diffstat (limited to 'camel/providers/MH/camel-mh-store.c')
-rw-r--r--camel/providers/MH/camel-mh-store.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/camel/providers/MH/camel-mh-store.c b/camel/providers/MH/camel-mh-store.c
index 2a1258a7b9..efdb2b86e9 100644
--- a/camel/providers/MH/camel-mh-store.c
+++ b/camel/providers/MH/camel-mh-store.c
@@ -75,15 +75,15 @@ camel_mh_store_get_type (void)
/** These evil public functions are here for test only **/
void
-camel_mh_store_set_toplevel_dir(CamelMhStore *store, GString *toplevel)
+camel_mh_store_set_toplevel_dir (CamelMhStore *store, const gchar *toplevel)
{
- store->toplevel_dir = toplevel;
+ store->toplevel_dir = g_strdup (toplevel);
CAMEL_STORE(store)->separator = '/';
}
-GString *
-camel_mh_store_get_toplevel_dir(CamelMhStore *store)
+const gchar *
+camel_mh_store_get_toplevel_dir (CamelMhStore *store)
{
return store->toplevel_dir;
}