From e3e971e7f5010b3ee005970216b8dd8086ca9671 Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 21 Jun 2005 04:58:48 +0000 Subject: use currently visible textview for selection reply. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@356 ee746299-78ed-0310-b773-934348b2243d --- src/summaryview.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/summaryview.c b/src/summaryview.c index 3c19c6c9..a69dde99 100644 --- a/src/summaryview.c +++ b/src/summaryview.c @@ -3896,11 +3896,17 @@ void summary_reply(SummaryView *summaryview, ComposeMode mode) /* use selection only if the displayed message is selected */ if (!mlist->next && msginfo == displayed_msginfo) { - text = gtkut_text_view_get_selection - (GTK_TEXT_VIEW(summaryview->messageview->textview->text)); - if (text && *text == '\0') { - g_free(text); - text = NULL; + TextView *textview; + + textview = messageview_get_current_textview + (summaryview->messageview); + if (textview) { + text = gtkut_text_view_get_selection + (GTK_TEXT_VIEW(textview->text)); + if (text && *text == '\0') { + g_free(text); + text = NULL; + } } } -- cgit v1.2.3