diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-12-19 06:03:31 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-12-19 06:03:31 +0000 |
commit | 65d0ef1a0662f93eb8fe06afa2887c048cb186d5 (patch) | |
tree | 22cdededbaa0af1fb784f6e643a5c73749c2e74f /src/mainwindow.c | |
parent | 7c81d8f7cebe34202244d6d7807284836117a8fb (diff) |
fixes blank message view is always appears on window popup.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1435 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index 3d630928..9ce5374f 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -2099,14 +2099,18 @@ void main_window_popup(MainWindow *mainwin) switch (mainwin->type) { case SEPARATE_FOLDER: - gtkut_window_popup(mainwin->win.sep_folder.folderwin); + if (prefs_common.folderview_visible) + gtkut_window_popup(mainwin->win.sep_folder.folderwin); break; case SEPARATE_MESSAGE: - gtkut_window_popup(mainwin->win.sep_message.messagewin); + if (messageview_is_visible(mainwin->messageview)) + gtkut_window_popup(mainwin->win.sep_message.messagewin); break; case SEPARATE_BOTH: - gtkut_window_popup(mainwin->win.sep_both.folderwin); - gtkut_window_popup(mainwin->win.sep_both.messagewin); + if (prefs_common.folderview_visible) + gtkut_window_popup(mainwin->win.sep_both.folderwin); + if (messageview_is_visible(mainwin->messageview)) + gtkut_window_popup(mainwin->win.sep_both.messagewin); break; default: break; |