aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-view.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2001-01-03 19:52:04 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-01-03 19:52:04 +0800
commitc37da1342398fdc4836baa89d0506a0950a10bb6 (patch)
tree58d0977e7b47884a3e0ed644f5ac777336bf9403 /mail/mail-view.c
parent3df84a345e9cec9fded0e697b660e6c18c91f9d7 (diff)
downloadgsoc2013-evolution-c37da1342398fdc4836baa89d0506a0950a10bb6.tar.gz
gsoc2013-evolution-c37da1342398fdc4836baa89d0506a0950a10bb6.tar.zst
gsoc2013-evolution-c37da1342398fdc4836baa89d0506a0950a10bb6.zip
Call mail-callbacks.c:forward_messages(), so the behaviour is the same as
2001-01-03 Not Zed <NotZed@HelixCode.com> * mail-view.c (view_forward_msg): Call mail-callbacks.c:forward_messages(), so the behaviour is the same as from the folder browser. * mail-callbacks.c (forward_messages): New function to forward messages, attached or not. (forward_inlined): Changed to use new forward-messages implementation. (forward_attached): Likewise. (do_forward_attach): Callback for forwarding as attachment, once we have built it. (do_forward_inline): Likewise, for inline, once we have retrieved the message. (forward_message): Removed. * mail-ops.c (mail_build_attachment): New function to build an attachment of messages. (mail_do_attach_message): Removed, functionality superceeded by above. (mail_do_forward_message): Removed. Likewise. (mail_create_folder): Started work on an alternative implementation of create_folder, but not sure about it yet. * mail-tools.c (mail_tool_generate_forward_subject): Remove locking. (mail_tool_make_message_attachment): Free the description when done. svn path=/trunk/; revision=7232
Diffstat (limited to 'mail/mail-view.c')
-rw-r--r--mail/mail-view.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/mail/mail-view.c b/mail/mail-view.c
index cd18b4ff69..c923799e83 100644
--- a/mail/mail-view.c
+++ b/mail/mail-view.c
@@ -100,21 +100,11 @@ static void
view_forward_msg (GtkWidget *widget, gpointer user_data)
{
mail_view_data *data = (mail_view_data *) user_data;
-
GPtrArray *uids;
- EMsgComposer *composer;
-
- composer = e_msg_composer_new ();
- if (!composer)
- return;
uids = g_ptr_array_new();
- g_ptr_array_add (uids, g_strdup (data->uid));
-
- gtk_signal_connect (GTK_OBJECT (composer), "send",
- GTK_SIGNAL_FUNC (composer_send_cb), NULL);
-
- mail_do_forward_message (data->msg, data->source, uids, composer, FALSE);
+ g_ptr_array_add(uids, g_strdup (data->uid));
+ forward_messages(data->source, uids, FALSE);
}
static void