aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-09-21 03:13:13 +0800
committerIain Holmes <iain@src.gnome.org>2001-09-21 03:13:13 +0800
commit704277492d619920abf2e0336d8da7a7602ee98c (patch)
treef0ae185235eece82ef68d9fd7bb4682a3d84dde5
parentf27acdc8a1a12c104971c4690ed589a6468f76c4 (diff)
downloadgsoc2013-evolution-704277492d619920abf2e0336d8da7a7602ee98c.tar.gz
gsoc2013-evolution-704277492d619920abf2e0336d8da7a7602ee98c.tar.zst
gsoc2013-evolution-704277492d619920abf2e0336d8da7a7602ee98c.zip
Only start wizard thing if there are no mail accounts
svn path=/trunk/; revision=13012
-rw-r--r--shell/ChangeLog6
-rw-r--r--shell/e-shell-startup-wizard.c7
2 files changed, 9 insertions, 4 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 5c8b140d00..7e011992c3 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,9 @@
+2001-09-20 Iain Holmes <iain@ximian.com>
+
+ * e-shell-startup-wizard.c (e_shell_startup_wizard_create): Check
+ the number of mail accounts that exist and display the dialog it this
+ is 0.
+
2001-09-19 Ettore Perazzoli <ettore@ximian.com>
* e-task-widget.c: New member `tooltips' in `ETaskWidgetPrivate'.
diff --git a/shell/e-shell-startup-wizard.c b/shell/e-shell-startup-wizard.c
index d875540502..ed42cf8bd6 100644
--- a/shell/e-shell-startup-wizard.c
+++ b/shell/e-shell-startup-wizard.c
@@ -767,7 +767,7 @@ e_shell_startup_wizard_create (void)
{
SWData *data;
CORBA_Environment ev;
- gboolean runbefore;
+ int num_accounts;
data = g_new0 (SWData, 1);
@@ -781,10 +781,10 @@ e_shell_startup_wizard_create (void)
return FALSE;
}
- runbefore = bonobo_config_get_boolean (data->db, "/Shell/RunBefore", &ev);
+ num_accounts = bonobo_config_get_long_with_default (data->db, "/Mail/Accounts/num", 0, NULL);
CORBA_exception_free (&ev);
- if (runbefore == TRUE) {
+ if (num_accounts != 0) {
bonobo_object_release_unref (data->db, NULL);
g_free (data);
return TRUE;
@@ -839,7 +839,6 @@ e_shell_startup_wizard_create (void)
gtk_main ();
/* Sync database */
- bonobo_config_set_boolean (data->db, "/Shell/RunBefore", TRUE, &ev);
Bonobo_ConfigDatabase_sync (data->db, &ev);
bonobo_object_release_unref (data->db, NULL);
CORBA_exception_free (&ev);