From 489fe60f9ec5a53adff420f3e468f25fcd6c523d Mon Sep 17 00:00:00 2001 From: Jason Leach Date: Fri, 6 Jul 2001 21:44:35 +0000 Subject: [Misc fixes and part of #2228, There should be no dialog boxes during 2001-07-06 Jason Leach [Misc fixes and part of #2228, There should be no dialog boxes during startup.] * e-setup.c (e_setup): Check for searches.xml instead of shortcuts.xml, since shortcuts.xml doesn't really need to exist (and thus wouldn't be a necessary test whether ~/evolution was invalid) because shell can generate shortcuts. (copy_default_stuff): For first time users, only present a dialog if a problem occurred. We've already clicked "Ok" on a dialog about copying files. (check_evolution_directory): Take out the "successfully installed" dialog on updates too. svn path=/trunk/; revision=10864 --- shell/e-setup.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'shell/e-setup.c') diff --git a/shell/e-setup.c b/shell/e-setup.c index f70b7b00ff..6f8d565056 100644 --- a/shell/e-setup.c +++ b/shell/e-setup.c @@ -168,9 +168,6 @@ check_evolution_directory (const char *evolution_directory) if (retval == FALSE) e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, _("Could not update files correctly")); - else - e_notice (NULL, GNOME_MESSAGE_BOX_INFO, - _("Evolution files successfully installed.")); out: @@ -234,11 +231,9 @@ copy_default_stuff (const char *evolution_directory) if (system (command) != 0) { /* FIXME: Give more help. */ e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, - _("Cannot copy files into\n`%s'."), evolution_directory); + _("An error occurred in copying files into\n`%s'."), evolution_directory); retval = FALSE; } else { - e_notice (NULL, GNOME_MESSAGE_BOX_INFO, - _("Evolution files successfully installed.")); retval = TRUE; } @@ -337,7 +332,7 @@ e_setup (const char *evolution_directory) g_free (file); - file = g_strdup_printf ("%s/shortcuts.xml", evolution_directory); + file = g_strdup_printf ("%s/searches.xml", evolution_directory); if (stat (file, &statinfo) != 0) { e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, _("The directory `%s' exists but is not the\n" -- cgit v1.2.3