aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-02-28 03:58:48 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-02-28 03:58:48 +0800
commit6ac358e98e9e7e7b7ec61f77d7929267c5afd55d (patch)
treea0003f15fa3877e64b06e79c2760be0509d0e11a
parent588dc390a997e5e7f70f200a5468bde4f99d3d95 (diff)
downloadgsoc2013-evolution-6ac358e98e9e7e7b7ec61f77d7929267c5afd55d.tar.gz
gsoc2013-evolution-6ac358e98e9e7e7b7ec61f77d7929267c5afd55d.tar.zst
gsoc2013-evolution-6ac358e98e9e7e7b7ec61f77d7929267c5afd55d.zip
Return TRUE if the user configured his/her settings, else return FALSE.
2001-02-27 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (configure_mail): Return TRUE if the user configured his/her settings, else return FALSE. (check_send_configuration): If configure_mail() returns TRUE, then continue otherwise quit. (send_receive_mail): Same. svn path=/trunk/; revision=8407
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/mail-callbacks.c24
2 files changed, 21 insertions, 11 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 5dacf21e66..5ad22dc3cc 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,11 @@
+2001-02-27 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-callbacks.c (configure_mail): Return TRUE if the user
+ configured his/her settings, else return FALSE.
+ (check_send_configuration): If configure_mail() returns TRUE, then
+ continue otherwise quit.
+ (send_receive_mail): Same.
+
2001-02-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mail_generate_reply): Set a "References"
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index ae64e6f116..1bb6a15871 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -71,7 +71,7 @@ druid_destroyed (void)
gtk_main_quit ();
}
-static void
+static gboolean
configure_mail (FolderBrowser *fb)
{
MailConfigDruid *druid;
@@ -87,7 +87,7 @@ configure_mail (FolderBrowser *fb)
GNOME_MESSAGE_BOX_QUESTION,
GNOME_STOCK_BUTTON_YES,
GNOME_STOCK_BUTTON_NO, NULL);
-
+
/*
* Focus YES
*/
@@ -111,6 +111,8 @@ configure_mail (FolderBrowser *fb)
break;
}
}
+
+ return mail_config_is_configured ();
}
static gboolean
@@ -120,8 +122,8 @@ check_send_configuration (FolderBrowser *fb)
/* Check general */
if (!mail_config_is_configured ()) {
- configure_mail (fb);
- return FALSE;
+ if (!configure_mail (fb))
+ return FALSE;
}
/* Get the default account */
@@ -177,21 +179,21 @@ void
send_receive_mail (GtkWidget *widget, gpointer user_data)
{
const MailConfigAccount *account;
-
+
/* receive first then send, this is a temp fix for POP-before-SMTP */
if (!mail_config_is_configured ()) {
- configure_mail (FOLDER_BROWSER (user_data));
- return;
+ if (!configure_mail (FOLDER_BROWSER (user_data)))
+ return;
}
account = mail_config_get_default_account ();
if (!account || !account->transport) {
- GtkWidget *win = gtk_widget_get_ancestor(GTK_WIDGET (user_data), GTK_TYPE_WINDOW);
- gnome_error_dialog_parented (_("You have not set a mail transport method"), GTK_WINDOW(win));
+ GtkWidget *win = gtk_widget_get_ancestor (GTK_WIDGET (user_data), GTK_TYPE_WINDOW);
+ gnome_error_dialog_parented (_("You have not set a mail transport method"), GTK_WINDOW (win));
return;
}
-
- mail_send_receive();
+
+ mail_send_receive ();
}
static void