aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--src/mainwindow.c5
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index cb3eeb90..3cf59afd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-11-17
+
+ * src/mainwindow.c: main_window_create(): force visibility of the
+ message view on startup (fixes wrong view size on vertical-view
+ mode).
+ main_window_get_size(): don't update summaryview_vwidth if
+ message view is not visible.
+
2011-10-14
* src/summaryview.c: show both filtered and original numbers of
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 {