aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2011-11-17 07:22:51 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2011-11-17 07:22:51 +0000
commitbbcb27a5f65c1a759dd65c8564598105dc3e468a (patch)
tree07f06969f61e8dd232590ad11a5ab9fb58aadedd /src
parent6937a29607ecd576f2846a76251857f0cd09cff7 (diff)
fixed startup summary/message view size on vertical-view mode.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2984 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index a42fbcac..0c31be36 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1132,7 +1132,7 @@ MainWindow *main_window_create(SeparateType type)
g_warning(_("MainWindow: color allocation %d failed\n"), i);
}
- messageview->visible = prefs_common.msgview_visible;
+ messageview->visible = TRUE;
main_window_set_widgets(mainwin, prefs_common.layout_type, type);
@@ -1627,7 +1627,8 @@ void main_window_get_size(MainWindow *mainwin)
allocation = &(GTK_WIDGET_PTR(mainwin->summaryview)->allocation);
if (allocation->width > 1 && allocation->height > 1) {
if (vlayout) {
- if (!(mainwin->type & SEPARATE_MESSAGE))
+ if (!(mainwin->type & SEPARATE_MESSAGE) &&
+ messageview_is_visible(mainwin->messageview))
prefs_common.summaryview_vwidth = allocation->width;
prefs_common.summaryview_vheight = allocation->height;
} else {