diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-12-19 10:17:38 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-12-19 10:17:38 +0000 |
commit | 8a153f9dbc28c73dd82730c66e3666ce4829093a (patch) | |
tree | c79d29412a8d0278bc68c3265d53bffc640100d7 /src/mainwindow.c | |
parent | 9e4d5239e9db76f70b59e0af42ffec6700a4c263 (diff) |
save summary view height even if window is maximized.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@839 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index 36c5abd1..0da3baa5 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -1447,22 +1447,24 @@ void main_window_get_size(MainWindow *mainwin) { GtkAllocation *allocation; - if (prefs_common.mainwin_maximized) - return; - allocation = &(GTK_WIDGET_PTR(mainwin->summaryview)->allocation); if (allocation->width > 1 && allocation->height > 1) { - prefs_common.summaryview_width = allocation->width; + if (!prefs_common.mainwin_maximized) { + prefs_common.summaryview_width = allocation->width; + prefs_common.mainview_width = allocation->width; + } if ((mainwin->type == SEPARATE_NONE || mainwin->type == SEPARATE_FOLDER) && messageview_is_visible(mainwin->messageview)) prefs_common.summaryview_height = allocation->height; - prefs_common.mainview_width = allocation->width; } + if (prefs_common.mainwin_maximized) + return; + allocation = &mainwin->window->allocation; if (allocation->width > 1 && allocation->height > 1) { prefs_common.mainview_height = allocation->height; |