diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.ja | 5 | ||||
-rw-r--r-- | src/mainwindow.c | 12 |
3 files changed, 17 insertions, 5 deletions
@@ -1,5 +1,10 @@ 2005-12-19 + * src/mainwindow.c: main_window_get_size(): save summary view height + even if window is maximized. + +2005-12-19 + * libsylph/prefs_common.[ch] src/mainwindow.c: remember the maximized state. diff --git a/ChangeLog.ja b/ChangeLog.ja index 20de0f2c..092ad562 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,5 +1,10 @@ 2005-12-19 + * src/mainwindow.c: main_window_get_size(): ウィンドウが最大化されて + いてもサマリビューの高さを保存するようにした。 + +2005-12-19 + * libsylph/prefs_common.[ch] src/mainwindow.c: 最大化状態を記憶するようにした。 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; |