diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-06-21 04:58:48 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-06-21 04:58:48 +0000 |
commit | e3e971e7f5010b3ee005970216b8dd8086ca9671 (patch) | |
tree | 9bf07aaa5ed7c5f25df483e7765cbd54065e8746 /src | |
parent | 25739250c4330d9b04177f8e47476f2e2f99864f (diff) |
use currently visible textview for selection reply.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@356 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/summaryview.c | 16 |
1 files changed, 11 insertions, 5 deletions
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; + } } } |