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 | |
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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.ja | 5 | ||||
-rw-r--r-- | src/summaryview.c | 16 |
3 files changed, 21 insertions, 5 deletions
@@ -1,3 +1,8 @@ +2005-06-21 + + * src/summaryview.c: summary_reply(): use currently visible textview + for selection reply. + 2005-06-20 * configure.in: enabled GPGME and OpenSSL support by default. diff --git a/ChangeLog.ja b/ChangeLog.ja index 08a9282f..dfd38716 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,8 @@ +2005-06-21 + + * src/summaryview.c: summary_reply(): 選択部返信で現在表示されている + テキストビューを使用するようにした。 + 2005-06-20 * configure.in: デフォルトで GPGME と OpenSSL 対応を有効にした。 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; + } } } |