aboutsummaryrefslogtreecommitdiff
path: root/src/folder.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-08-09 07:31:31 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-08-09 07:31:31 +0000
commit379ded77a4b51e04dfe2bbe3a97b7e8ca96300cd (patch)
treee452df2eee39c127b9244b52cdc80613df309391 /src/folder.c
parent416aeb194a7fdd9c8f643ec63b5ee4b6b408fdd3 (diff)
modified directories for Windows convention.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@482 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/folder.c')
-rw-r--r--src/folder.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/folder.c b/src/folder.c
index c4645fe3..6d5a29d1 100644
--- a/src/folder.c
+++ b/src/folder.c
@@ -897,7 +897,7 @@ gchar *folder_item_get_path(FolderItem *item)
}
}
- if (folder_path[0] == G_DIR_SEPARATOR) {
+ if (g_path_is_absolute(folder_path)) {
if (item_path)
path = g_strconcat(folder_path, G_DIR_SEPARATOR_S,
item_path, NULL);
@@ -905,12 +905,13 @@ gchar *folder_item_get_path(FolderItem *item)
path = g_strdup(folder_path);
} else {
if (item_path)
- path = g_strconcat(get_home_dir(), G_DIR_SEPARATOR_S,
- folder_path, G_DIR_SEPARATOR_S,
- item_path, NULL);
+ path = g_strconcat(get_mail_base_dir(),
+ G_DIR_SEPARATOR_S, folder_path,
+ G_DIR_SEPARATOR_S, item_path, NULL);
else
- path = g_strconcat(get_home_dir(), G_DIR_SEPARATOR_S,
- folder_path, NULL);
+ path = g_strconcat(get_mail_base_dir(),
+ G_DIR_SEPARATOR_S, folder_path,
+ NULL);
}
g_free(item_path);