From 4c1c537e19a6397fc4b3418e5db6eea4239ab741 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sun, 23 Apr 2000 17:15:07 +0000 Subject: rename "send" to "send_msg", to avoid name clash with the tcp function. * folder-browser-factory.c: rename "send" to "send_msg", to avoid name clash with the tcp function. Connect the "forward" button. * mail-ops.c: rename "send" to "send_msg", to avoid name clash with the tcp function. Add forward_msg function. * mail-format.c (mail_generate_forward): support function for forward_msg. Pretty much a big kludge right now, pending the attachment/attachment-bar changes. svn path=/trunk/; revision=2562 --- mail/mail-ops.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'mail/mail-ops.c') diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 731770c0c2..81724c4f43 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -275,7 +275,7 @@ composer_send_cb (EMsgComposer *composer, gpointer data) void -send (GtkWidget *widget, gpointer user_data) +send_msg (GtkWidget *widget, gpointer user_data) { GtkWidget *composer; @@ -312,3 +312,20 @@ reply_to_all (GtkWidget *button, gpointer user_data) { reply (FOLDER_BROWSER (user_data), TRUE); } + + +void +forward_msg (GtkWidget *button, gpointer user_data) +{ + FolderBrowser *fb; + EMsgComposer *composer; + + fb = FOLDER_BROWSER (user_data); + composer = mail_generate_forward (fb->mail_display->current_message, + TRUE, TRUE); + + gtk_signal_connect (GTK_OBJECT (composer), "send", + GTK_SIGNAL_FUNC (composer_send_cb), NULL); + + gtk_widget_show (GTK_WIDGET (composer)); +} -- cgit v1.2.3