aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-02-13 02:36:19 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-02-13 02:36:19 +0000
commit073ac0f0606344e1f6dbcf4d706a0710d41ae7b2 (patch)
treeb89366903cc9e0247bfab4e9fa5c045a3e41eb58 /src/mainwindow.c
parentc5ebe71066678fb3bb49876f119a7f60f303382f (diff)
fixed the problem that the width of the folder view was not saved on maximized state.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1540 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index c40c8a01..4f45fb77 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1538,7 +1538,6 @@ void main_window_get_size(MainWindow *mainwin)
GtkAllocation *allocation;
allocation = &(GTK_WIDGET_PTR(mainwin->summaryview)->allocation);
-
if (allocation->width > 1 && allocation->height > 1) {
if (!prefs_common.mainwin_maximized) {
prefs_common.summaryview_width = allocation->width;
@@ -1552,8 +1551,12 @@ void main_window_get_size(MainWindow *mainwin)
}
- if (prefs_common.mainwin_maximized)
+ if (prefs_common.mainwin_maximized) {
+ allocation = &(GTK_WIDGET_PTR(mainwin->folderview)->allocation);
+ if (allocation->width > 1 && allocation->height > 1)
+ prefs_common.folderview_width = allocation->width;
return;
+ }
allocation = &mainwin->window->allocation;
if (allocation->width > 1 && allocation->height > 1) {