aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-09-26 04:16:14 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-09-26 04:16:14 +0800
commit70a6a65a5607ab0003c25bd64a4338baa47d1dd5 (patch)
tree83b463e1ddcc692335e5d82b082ace39de3b386c /mail/component-factory.c
parent9c2f01c606823e1f6a0d77bbd0590ef8079f05d5 (diff)
downloadgsoc2013-evolution-70a6a65a5607ab0003c25bd64a4338baa47d1dd5.tar
gsoc2013-evolution-70a6a65a5607ab0003c25bd64a4338baa47d1dd5.tar.gz
gsoc2013-evolution-70a6a65a5607ab0003c25bd64a4338baa47d1dd5.tar.bz2
gsoc2013-evolution-70a6a65a5607ab0003c25bd64a4338baa47d1dd5.tar.lz
gsoc2013-evolution-70a6a65a5607ab0003c25bd64a4338baa47d1dd5.tar.xz
gsoc2013-evolution-70a6a65a5607ab0003c25bd64a4338baa47d1dd5.tar.zst
gsoc2013-evolution-70a6a65a5607ab0003c25bd64a4338baa47d1dd5.zip
Throw up a warning dialog if we suspect the config database is corrupt.
2001-09-25 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (owner_set_cb): Throw up a warning dialog if we suspect the config database is corrupt. * mail-config.c (config_read): If the account name is NULL, then we have a corrupt config database most likely - so generate a fake account name and set the corrupt but to TRUE. (mail_config_is_corrupt): New function to find out if the config is suspected of being corrupted. svn path=/trunk/; revision=13116
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 87f4fadbc2..cddf142891 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -636,6 +636,12 @@ shell_client_destroy (GtkObject *object)
}
static void
+warning_clicked (GtkWidget *dialog, gpointer user_data)
+{
+ gtk_widget_destroy (dialog);
+}
+
+static void
owner_set_cb (EvolutionShellComponent *shell_component,
EvolutionShellClient *shell_client,
const char *evolution_homedir,
@@ -679,10 +685,20 @@ owner_set_cb (EvolutionShellComponent *shell_component,
}
mail_session_enable_interaction (TRUE);
-
+
vfolder_load_storage(corba_shell);
mail_autoreceive_setup ();
+
+ if (mail_config_is_corrupt ()) {
+ GtkWidget *dialog;
+
+ dialog = gnome_warning_dialog (_("Some of your mail settings seem corrupt, "
+ "please check that everything is in order."));
+ gtk_signal_connect (GTK_OBJECT (dialog), "clicked", warning_clicked, NULL);
+ gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
+ gtk_widget_show (dialog);
+ }
}
static void