From 704277492d619920abf2e0336d8da7a7602ee98c Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Thu, 20 Sep 2001 19:13:13 +0000 Subject: Only start wizard thing if there are no mail accounts svn path=/trunk/; revision=13012 --- shell/ChangeLog | 6 ++++++ shell/e-shell-startup-wizard.c | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'shell') 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 + + * 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 * 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); -- cgit