aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorIain Holmes <iain@helixcode.com>2000-10-18 18:51:55 +0800
committerIain Holmes <iain@src.gnome.org>2000-10-18 18:51:55 +0800
commit8d91a9c1c66077eb71a0bdab2bd946be70afa1ac (patch)
treeec27a07105b5a42fd9cfe938d63f446ede5642dc /mail/mail-callbacks.c
parentafe6513468ae8f21168e64ac67822b1234a0ebcd (diff)
downloadgsoc2013-evolution-8d91a9c1c66077eb71a0bdab2bd946be70afa1ac.tar
gsoc2013-evolution-8d91a9c1c66077eb71a0bdab2bd946be70afa1ac.tar.gz
gsoc2013-evolution-8d91a9c1c66077eb71a0bdab2bd946be70afa1ac.tar.bz2
gsoc2013-evolution-8d91a9c1c66077eb71a0bdab2bd946be70afa1ac.tar.lz
gsoc2013-evolution-8d91a9c1c66077eb71a0bdab2bd946be70afa1ac.tar.xz
gsoc2013-evolution-8d91a9c1c66077eb71a0bdab2bd946be70afa1ac.tar.zst
gsoc2013-evolution-8d91a9c1c66077eb71a0bdab2bd946be70afa1ac.zip
Disable the optionmenu because it is empty. (service_page_item_auth_fill):
2000-10-17 Iain Holmes <iain@helixcode.com> * mail-config-gui.c (service_page_item_new): Disable the optionmenu because it is empty. (service_page_item_auth_fill): Enable the optionmenu as there's stuff in it now. * mail-callbacks.c (reply_to_sender): Call check_send_configuration when we have the FolderBrowser because if it is done in mail_reply (with passing NULL) it will only be able to continue if the mailer has already been configured. (reply_to_all): Same. svn path=/trunk/; revision=5984
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 91afe99a93..f9d625a22e 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -406,10 +406,12 @@ mail_reply (CamelFolder *folder, CamelMimeMessage *msg, const char *uid, gboolea
/* FIXME: I just don't feel like implementing the folder-browser-passing
* garbage. */
+ /* FIXME: We really need some way to get the folder_browser into this
+ function */
if (!check_send_configuration (NULL) || !folder ||
!msg || !uid)
return;
-
+
psd = g_new (struct post_send_data, 1);
psd->folder = folder;
camel_object_ref (CAMEL_OBJECT (psd->folder));
@@ -435,6 +437,9 @@ reply_to_sender (GtkWidget *widget, gpointer user_data)
{
FolderBrowser *fb = FOLDER_BROWSER (user_data);
+ if (!check_send_configuration (fb))
+ return;
+
mail_reply (fb->folder, fb->mail_display->current_message,
fb->message_list->cursor_uid, FALSE);
}
@@ -443,7 +448,10 @@ void
reply_to_all (GtkWidget *widget, gpointer user_data)
{
FolderBrowser *fb = FOLDER_BROWSER (user_data);
-
+
+ if (!check_send_configuration (fb))
+ return;
+
mail_reply (fb->folder, fb->mail_display->current_message,
fb->message_list->cursor_uid, TRUE);
}