diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-08 09:17:17 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-08 09:17:17 +0000 |
commit | 0ff75d10977146767ccc42c2e2915f75886a68bf (patch) | |
tree | d006e0d23948dfa1e66d7ccbe9e5746472c2e54e /src/summaryview.c | |
parent | 15ecfbc6effda513ca18e81b419b0eaf02daa0d5 (diff) |
changed the implementation of switching Text/MIME view.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@154 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/summaryview.c')
-rw-r--r-- | src/summaryview.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/summaryview.c b/src/summaryview.c index 36dbe9ee..f0c4ef43 100644 --- a/src/summaryview.c +++ b/src/summaryview.c @@ -1936,16 +1936,17 @@ static void summary_display_msg_full(SummaryView *summaryview, msgview = summaryview->messageview; summaryview->displayed = row; - if (!messageview_is_visible(msgview)) + if (!messageview_is_visible(msgview)) { main_window_toggle_message_view(summaryview->mainwin); + GTK_EVENTS_FLUSH(); + } val = messageview_show(msgview, msginfo, all_headers); if (msgview->type == MVIEW_TEXT || (msgview->type == MVIEW_MIME && (GTK_CLIST(msgview->mimeview->ctree)->row_list == NULL || gtk_notebook_get_current_page - (GTK_NOTEBOOK(msgview->mimeview->notebook)) == 0))) + (GTK_NOTEBOOK(msgview->notebook)) == 0))) gtk_widget_grab_focus(summaryview->ctree); - GTK_EVENTS_FLUSH(); gtkut_ctree_node_move_if_on_the_edge(ctree, row); } @@ -3819,7 +3820,7 @@ static gboolean summary_key_pressed(GtkWidget *widget, GdkEventKey *event, messageview = summaryview->messageview; if (messageview->type == MVIEW_MIME && gtk_notebook_get_current_page - (GTK_NOTEBOOK(messageview->mimeview->notebook)) == 1) + (GTK_NOTEBOOK(messageview->notebook)) == 1) textview = messageview->mimeview->textview; else textview = messageview->textview; |