From: Paul Mangan Date: Wed, 2 Jul 2003 15:52:38 +0000 (+0000) Subject: fix text-selection for replying X-Git-Tag: rel_0_9_3~35 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=7fb3d7b45cc2a852e8a1aa390e027f44d354db68 fix text-selection for replying --- diff --git a/ChangeLog.claws b/ChangeLog.claws index c1f05aea1..64de6f161 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,8 @@ +2003-07-02 [paul] 0.9.0claws74 + + * src/messageview.c + fix text-selection for replying + 2003-07-02 [paul] 0.9.0claws73 * sync with 0.9.2cvs11 diff --git a/configure.ac b/configure.ac index fd59cc3f6..81df28653 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=9 MICRO_VERSION=0 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=claws73 +EXTRA_VERSION=claws74 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl set $target diff --git a/src/messageview.c b/src/messageview.c index 544bd9f76..97bbc6b13 100644 --- a/src/messageview.c +++ b/src/messageview.c @@ -1128,19 +1128,18 @@ static PrefsAccount *select_account_from_list(GList *ac_list) */ gchar *messageview_get_selection(MessageView *msgview) { + TextView *textview; gchar *text = NULL; GtkEditable *edit = NULL; gint body_pos = 0; g_return_val_if_fail(msgview != NULL, NULL); - if (msgview->type == MVIEW_TEXT) { - edit = GTK_EDITABLE(msgview->textview->text); - body_pos = msgview->textview->body_pos; - } else if (msgview->type == MVIEW_MIME - && msgview->mimeview->type == MIMEVIEW_TEXT - && msgview->mimeview->textview - && !msgview->mimeview->textview->default_text) { + textview = messageview_get_current_textview(msgview); + if (textview) { + edit = GTK_EDITABLE(textview->text); + body_pos = textview->body_pos; + } else { edit = GTK_EDITABLE(msgview->mimeview->textview->text); body_pos = msgview->mimeview->textview->body_pos; }