aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-12-28 02:20:43 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-12-28 02:20:43 +0000
commit1ac2dec65364b3165e068b38d7941e53595e365d (patch)
tree5b23795840d57f34a5fd70f79deca4286d2a122c /libsylph
parent911f245f5585fed897411ac68241c71ddf9d8f88 (diff)
implemented vertical view. Separated quick search into another module.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1949 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/enums.h9
-rw-r--r--libsylph/prefs_common.c7
-rw-r--r--libsylph/prefs_common.h6
3 files changed, 22 insertions, 0 deletions
diff --git a/libsylph/enums.h b/libsylph/enums.h
index f05d6c71..29bae623 100644
--- a/libsylph/enums.h
+++ b/libsylph/enums.h
@@ -31,6 +31,15 @@ typedef enum
typedef enum
{
+ LAYOUT_NORMAL,
+ LAYOUT_VERTICAL,
+ LAYOUT_VERTICAL_DOUBLE,
+ LAYOUT_WIDE_MESSAGE,
+ LAYOUT_WIDE_SUMMARY
+} LayoutType;
+
+typedef enum
+{
S_COL_MARK,
S_COL_UNREAD,
S_COL_MIME,
diff --git a/libsylph/prefs_common.c b/libsylph/prefs_common.c
index 35270667..439fa958 100644
--- a/libsylph/prefs_common.c
+++ b/libsylph/prefs_common.c
@@ -138,6 +138,8 @@ static PrefParam param[] = {
{"compose_toolbar_setting", NULL,
&prefs_common.compose_toolbar_setting, P_STRING},
+ {"layout_type", "0", &prefs_common.layout_type, P_ENUM},
+
{"summary_col_show_mark", "TRUE",
&prefs_common.summary_col_visible[S_COL_MARK], P_BOOL},
{"summary_col_show_unread", "TRUE",
@@ -248,11 +250,16 @@ static PrefParam param[] = {
{"summaryview_width", "600", &prefs_common.summaryview_width, P_INT},
{"summaryview_height", "180", &prefs_common.summaryview_height, P_INT},
+ {"summaryview_vwidth", "300", &prefs_common.summaryview_vwidth, P_INT},
+ {"summaryview_vheight", "600", &prefs_common.summaryview_vheight,
+ P_INT},
{"main_messagewin_x", "256", &prefs_common.main_msgwin_x, P_INT},
{"main_messagewin_y", "210", &prefs_common.main_msgwin_y, P_INT},
{"messageview_width", "600", &prefs_common.msgview_width, P_INT},
{"messageview_height", "300", &prefs_common.msgview_height, P_INT},
+ {"messageview_vwidth", "300", &prefs_common.msgview_vwidth, P_INT},
+ {"messageview_vheight", "600", &prefs_common.msgview_vheight, P_INT},
{"messageview_visible", "TRUE", &prefs_common.msgview_visible, P_BOOL},
{"mainview_x", "64", &prefs_common.mainview_x, P_INT},
diff --git a/libsylph/prefs_common.h b/libsylph/prefs_common.h
index 2bd100df..79f5cae4 100644
--- a/libsylph/prefs_common.h
+++ b/libsylph/prefs_common.h
@@ -123,6 +123,8 @@ struct _PrefsCommon
gchar *main_toolbar_setting;
gchar *compose_toolbar_setting;
+ LayoutType layout_type;
+
/* Summary columns visibility, position and size */
gboolean summary_col_visible[N_SUMMARY_COLS];
gint summary_col_pos[N_SUMMARY_COLS];
@@ -144,11 +146,15 @@ struct _PrefsCommon
gint summaryview_width;
gint summaryview_height;
+ gint summaryview_vwidth;
+ gint summaryview_vheight;
gint main_msgwin_x;
gint main_msgwin_y;
gint msgview_width;
gint msgview_height;
+ gint msgview_vwidth;
+ gint msgview_vheight;
gboolean msgview_visible;
gint mainview_x;