fix text-selection for replying
authorPaul Mangan <paul@claws-mail.org>
Wed, 2 Jul 2003 15:52:38 +0000 (15:52 +0000)
committerPaul Mangan <paul@claws-mail.org>
Wed, 2 Jul 2003 15:52:38 +0000 (15:52 +0000)
ChangeLog.claws
configure.ac
src/messageview.c

index c1f05ae..64de6f1 100644 (file)
@@ -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
index fd59cc3..81df286 100644 (file)
@@ -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
index 544bd9f..97bbc6b 100644 (file)
@@ -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;
        }