aboutsummaryrefslogtreecommitdiff
path: root/src/foldersel.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-07-29 07:01:32 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-07-29 07:01:32 +0000
commit03d5278cdd2fd4fd7b6caef33aa53b28e71ffc1c (patch)
tree56859ef1a0ac0310a47f9670113e2b2f2e0f7524 /src/foldersel.c
parentf105a6dc818de10f476cf5f48c9c590428c661ef (diff)
added 'Junk' special folder and automatically create it when not exist.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2638 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/foldersel.c')
-rw-r--r--src/foldersel.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/foldersel.c b/src/foldersel.c
index 61c9a809..bca88d0f 100644
--- a/src/foldersel.c
+++ b/src/foldersel.c
@@ -417,6 +417,10 @@ static void foldersel_append_item(GtkTreeStore *store, FolderItem *item,
if (!strcmp2(item->name, DRAFT_DIR))
name = _("Drafts");
break;
+ case F_JUNK:
+ if (!strcmp2(item->name, JUNK_DIR))
+ name = _("Junk");
+ break;
default:
break;
}
@@ -449,7 +453,7 @@ static void foldersel_append_item(GtkTreeStore *store, FolderItem *item,
pixbuf_open = no_select ? foldernoselect_pixbuf : folderopen_pixbuf;
if (item->stype == F_OUTBOX || item->stype == F_DRAFT ||
- item->stype == F_TRASH) {
+ item->stype == F_TRASH || item->stype == F_JUNK) {
use_color = FALSE;
} else if (item->stype == F_QUEUE) {
use_color = (item->total > 0);