aboutsummaryrefslogtreecommitdiff
path: root/src/summaryview.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-05-14 02:21:12 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-05-14 02:21:12 +0000
commitf63d8818315ba710b1c20b4886fc1fb78e0774e0 (patch)
treece5767ae26da98d0f101dfda5d51d778de91e63d /src/summaryview.c
parent50c459c068dbc5a10a50463813046fd3a8f085db (diff)
don't move focus from text view to summary view when displaying messages.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1991 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/summaryview.c')
-rw-r--r--src/summaryview.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/summaryview.c b/src/summaryview.c
index e3bf6f2f..31e7d1f5 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -2578,17 +2578,18 @@ static void summary_display_msg_full(SummaryView *summaryview,
val = messageview_show(msgview, msginfo, all_headers);
} else {
MessageView *msgview = summaryview->messageview;
+ gboolean prev_mimeview;
if (!messageview_is_visible(msgview)) {
main_window_toggle_message_view(summaryview->mainwin);
GTK_EVENTS_FLUSH();
}
+ prev_mimeview =
+ messageview_get_selected_mime_part(msgview) != NULL;
+
val = messageview_show(msgview, msginfo, all_headers);
- if (msgview->type == MVIEW_TEXT ||
- (msgview->type == MVIEW_MIME &&
- (msgview->mimeview->opened == NULL ||
- gtk_notebook_get_current_page
- (GTK_NOTEBOOK(msgview->notebook)) == 0)))
+ if (prev_mimeview &&
+ !messageview_get_selected_mime_part(msgview))
gtk_widget_grab_focus(summaryview->treeview);
}