aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-startup-wizard.c
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 /shell/e-shell-startup-wizard.c
parentf27acdc8a1a12c104971c4690ed589a6468f76c4 (diff)
downloadgsoc2013-evolution-704277492d619920abf2e0336d8da7a7602ee98c.tar
gsoc2013-evolution-704277492d619920abf2e0336d8da7a7602ee98c.tar.gz
gsoc2013-evolution-704277492d619920abf2e0336d8da7a7602ee98c.tar.bz2
gsoc2013-evolution-704277492d619920abf2e0336d8da7a7602ee98c.tar.lz
gsoc2013-evolution-704277492d619920abf2e0336d8da7a7602ee98c.tar.xz
gsoc2013-evolution-704277492d619920abf2e0336d8da7a7602ee98c.tar.zst
gsoc2013-evolution-704277492d619920abf2e0336d8da7a7602ee98c.zip
Only start wizard thing if there are no mail accounts
svn path=/trunk/; revision=13012
Diffstat (limited to 'shell/e-shell-startup-wizard.c')
-rw-r--r--shell/e-shell-startup-wizard.c7
1 files changed, 3 insertions, 4 deletions
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);