aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2011-12-16 09:04:54 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2011-12-16 09:04:54 +0000
commit94a1237c077d51149e3f1f6c1afd55bd7de0dacd (patch)
treef2d2da15e8dc553f4723030cfedca5ebd89bcc79 /src/mainwindow.c
parent8a31f8c337891276f4ad1cf94dc58d713d88a02f (diff)
src/mainwindow.c: main_window_create(): force visibility of the message view on startup only if the layout type is vertical mode.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2991 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 0c31be36..09cb41c7 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1132,7 +1132,10 @@ MainWindow *main_window_create(SeparateType type)
g_warning(_("MainWindow: color allocation %d failed\n"), i);
}
- messageview->visible = TRUE;
+ if (prefs_common.layout_type == LAYOUT_VERTICAL)
+ messageview->visible = TRUE;
+ else
+ messageview->visible = prefs_common.msgview_visible;
main_window_set_widgets(mainwin, prefs_common.layout_type, type);