diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-07-29 07:01:32 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-07-29 07:01:32 +0000 |
commit | 03d5278cdd2fd4fd7b6caef33aa53b28e71ffc1c (patch) | |
tree | 56859ef1a0ac0310a47f9670113e2b2f2e0f7524 /src/folderview.c | |
parent | f105a6dc818de10f476cf5f48c9c590428c661ef (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/folderview.c')
-rw-r--r-- | src/folderview.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/folderview.c b/src/folderview.c index 66feed77..998bbe25 100644 --- a/src/folderview.c +++ b/src/folderview.c @@ -111,6 +111,7 @@ static GdkPixbuf *folderopen_pixbuf; static GdkPixbuf *foldernoselect_pixbuf; static GdkPixbuf *draft_pixbuf; static GdkPixbuf *trash_pixbuf; +static GdkPixbuf *junk_pixbuf; static GdkPixbuf *virtual_pixbuf; static void folderview_set_columns (FolderView *folderview); @@ -561,6 +562,7 @@ void folderview_init(FolderView *folderview) &foldernoselect_pixbuf); stock_pixbuf_gdk(treeview, STOCK_PIXMAP_DRAFT, &draft_pixbuf); stock_pixbuf_gdk(treeview, STOCK_PIXMAP_TRASH, &trash_pixbuf); + stock_pixbuf_gdk(treeview, STOCK_PIXMAP_SPAM_SMALL, &junk_pixbuf); stock_pixbuf_gdk(treeview, STOCK_PIXMAP_FOLDER_SEARCH, &virtual_pixbuf); } @@ -1266,15 +1268,13 @@ static void folderview_update_row(FolderView *folderview, GtkTreeIter *iter) !strcmp2(item->name, DRAFT_DIR) ? _("Drafts") : item->name); break; -#if 0 case F_JUNK: - pixbuf = folder_pixbuf; + pixbuf = open_pixbuf = junk_pixbuf; open_pixbuf = folderopen_pixbuf; name = g_strdup(FOLDER_IS_LOCAL(item->folder) && !strcmp2(item->name, JUNK_DIR) ? _("Junk") : item->name); break; -#endif case F_VIRTUAL: pixbuf = open_pixbuf = virtual_pixbuf; name = g_strdup(item->name); |