diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-09-12 06:57:23 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-09-12 06:57:23 +0000 |
commit | a491efa0f2fc9fb9b9cbdce132d939f260718d31 (patch) | |
tree | 5a638921e05cf14600501e8062b7b619a368dd4b /libsylph | |
parent | 55f3cbdecc3e30021d63b07c51afb21bf51c5660 (diff) |
added 'To' column to the summary view.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1894 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/enums.h | 2 | ||||
-rw-r--r-- | libsylph/folder.h | 5 | ||||
-rw-r--r-- | libsylph/prefs_common.c | 44 | ||||
-rw-r--r-- | libsylph/prefs_common.h | 2 |
4 files changed, 52 insertions, 1 deletions
diff --git a/libsylph/enums.h b/libsylph/enums.h index df95aa0b..f05d6c71 100644 --- a/libsylph/enums.h +++ b/libsylph/enums.h @@ -39,12 +39,12 @@ typedef enum S_COL_DATE, S_COL_SIZE, S_COL_NUMBER, + S_COL_TO, S_COL_MSG_INFO, S_COL_LABEL, S_COL_TDATE, - S_COL_TO, S_COL_FOREGROUND, S_COL_BOLD, diff --git a/libsylph/folder.h b/libsylph/folder.h index 38907551..3d2e577b 100644 --- a/libsylph/folder.h +++ b/libsylph/folder.h @@ -62,6 +62,11 @@ typedef struct _FolderItem FolderItem; FOLDER_TYPE(FOLDER_ITEM(obj)->folder) == F_IMAP) && \ !FOLDER_ITEM(obj)->no_select) +#define FOLDER_ITEM_IS_SENT_FOLDER(obj) ((obj) && \ + ((obj)->stype == F_OUTBOX || \ + (obj)->stype == F_DRAFT || \ + (obj)->stype == F_QUEUE)) + typedef enum { F_MH, diff --git a/libsylph/prefs_common.c b/libsylph/prefs_common.c index df545d3f..590951ee 100644 --- a/libsylph/prefs_common.c +++ b/libsylph/prefs_common.c @@ -154,6 +154,8 @@ static PrefParam param[] = { &prefs_common.summary_col_visible[S_COL_SIZE], P_BOOL}, {"summary_col_show_number", "FALSE", &prefs_common.summary_col_visible[S_COL_NUMBER], P_BOOL}, + {"summary_col_show_to", "FALSE", + &prefs_common.summary_col_visible[S_COL_TO], P_BOOL}, {"summary_col_pos_mark", "0", &prefs_common.summary_col_pos[S_COL_MARK], P_INT}, @@ -171,6 +173,46 @@ static PrefParam param[] = { &prefs_common.summary_col_pos[S_COL_SIZE], P_INT}, {"summary_col_pos_number", "7", &prefs_common.summary_col_pos[S_COL_NUMBER], P_INT}, + {"summary_col_pos_to", "8", + &prefs_common.summary_col_pos[S_COL_TO], P_INT}, + + {"summary_sent_col_show_mark", "TRUE", + &prefs_common.summary_sent_col_visible[S_COL_MARK], P_BOOL}, + {"summary_sent_col_show_unread", "TRUE", + &prefs_common.summary_sent_col_visible[S_COL_UNREAD], P_BOOL}, + {"summary_sent_col_show_mime", "TRUE", + &prefs_common.summary_sent_col_visible[S_COL_MIME], P_BOOL}, + {"summary_sent_col_show_subject", "TRUE", + &prefs_common.summary_sent_col_visible[S_COL_SUBJECT], P_BOOL}, + {"summary_sent_col_show_from", "FALSE", + &prefs_common.summary_sent_col_visible[S_COL_FROM], P_BOOL}, + {"summary_sent_col_show_date", "TRUE", + &prefs_common.summary_sent_col_visible[S_COL_DATE], P_BOOL}, + {"summary_sent_col_show_size", "TRUE", + &prefs_common.summary_sent_col_visible[S_COL_SIZE], P_BOOL}, + {"summary_sent_col_show_number", "FALSE", + &prefs_common.summary_sent_col_visible[S_COL_NUMBER], P_BOOL}, + {"summary_sent_col_show_to", "TRUE", + &prefs_common.summary_sent_col_visible[S_COL_TO], P_BOOL}, + + {"summary_sent_col_pos_mark", "0", + &prefs_common.summary_sent_col_pos[S_COL_MARK], P_INT}, + {"summary_sent_col_pos_unread", "1", + &prefs_common.summary_sent_col_pos[S_COL_UNREAD], P_INT}, + {"summary_sent_col_pos_mime", "2", + &prefs_common.summary_sent_col_pos[S_COL_MIME], P_INT}, + {"summary_sent_col_pos_subject", "3", + &prefs_common.summary_sent_col_pos[S_COL_SUBJECT], P_INT}, + {"summary_sent_col_pos_from", "8", + &prefs_common.summary_sent_col_pos[S_COL_FROM], P_INT}, + {"summary_sent_col_pos_date", "5", + &prefs_common.summary_sent_col_pos[S_COL_DATE], P_INT}, + {"summary_sent_col_pos_size", "6", + &prefs_common.summary_sent_col_pos[S_COL_SIZE], P_INT}, + {"summary_sent_col_pos_number", "7", + &prefs_common.summary_sent_col_pos[S_COL_NUMBER], P_INT}, + {"summary_sent_col_pos_to", "4", + &prefs_common.summary_sent_col_pos[S_COL_TO], P_INT}, {"summary_col_size_mark", "10", &prefs_common.summary_col_size[S_COL_MARK], P_INT}, @@ -188,6 +230,8 @@ static PrefParam param[] = { &prefs_common.summary_col_size[S_COL_SIZE], P_INT}, {"summary_col_size_number", "40", &prefs_common.summary_col_size[S_COL_NUMBER], P_INT}, + {"summary_col_size_to", "120", + &prefs_common.summary_col_size[S_COL_TO], P_INT}, /* Widget size */ {"folderwin_x", "16", &prefs_common.folderwin_x, P_INT}, diff --git a/libsylph/prefs_common.h b/libsylph/prefs_common.h index 279d4a46..18c1b134 100644 --- a/libsylph/prefs_common.h +++ b/libsylph/prefs_common.h @@ -126,6 +126,8 @@ struct _PrefsCommon /* Summary columns visibility, position and size */ gboolean summary_col_visible[N_SUMMARY_COLS]; gint summary_col_pos[N_SUMMARY_COLS]; + gboolean summary_sent_col_visible[N_SUMMARY_COLS]; + gint summary_sent_col_pos[N_SUMMARY_COLS]; gint summary_col_size[N_SUMMARY_COLS]; /* Widget visibility, position and size */ |