diff options
author | Not Zed <NotZed@Ximian.com> | 2003-02-26 20:49:04 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2003-02-26 20:49:04 +0800 |
commit | 2c488d4c817a8876bae0011692ff9e0fe9c8353c (patch) | |
tree | d784dcb011db12c0ca0b8b72a10b0091e5cd83a6 /shell/main.c | |
parent | d9d3e0d6275d7cb7bb85e7bbc096cf86d3fea3a2 (diff) | |
download | gsoc2013-evolution-2c488d4c817a8876bae0011692ff9e0fe9c8353c.tar gsoc2013-evolution-2c488d4c817a8876bae0011692ff9e0fe9c8353c.tar.gz gsoc2013-evolution-2c488d4c817a8876bae0011692ff9e0fe9c8353c.tar.bz2 gsoc2013-evolution-2c488d4c817a8876bae0011692ff9e0fe9c8353c.tar.lz gsoc2013-evolution-2c488d4c817a8876bae0011692ff9e0fe9c8353c.tar.xz gsoc2013-evolution-2c488d4c817a8876bae0011692ff9e0fe9c8353c.tar.zst gsoc2013-evolution-2c488d4c817a8876bae0011692ff9e0fe9c8353c.zip |
Added a key for /apps/evolution/version - seems the best place to put it.
2003-02-26 Not Zed <NotZed@Ximian.com>
* apps_evolution_shell.schemas: Added a key for
/apps/evolution/version - seems the best place to put it. This
should not return any value if unset, so i'm not sure if this is
the right mechanism ...
* e-config-upgrade.c: Upgrade settings from earlier versions of evolution.
* main.c (upgrade_from_1_0_if_needed): Removed.
(main): Call e_config_upgrade before going into gmainloop.
(main): Turn off the --force-upgrade option, since it doesn't work
yet ...
svn path=/trunk/; revision=20068
Diffstat (limited to 'shell/main.c')
-rw-r--r-- | shell/main.c | 38 |
1 files changed, 6 insertions, 32 deletions
diff --git a/shell/main.c b/shell/main.c index fed0721abf..6f6bade856 100644 --- a/shell/main.c +++ b/shell/main.c @@ -58,6 +58,8 @@ #include <glade/glade.h> +#include "e-config-upgrade.h" + #ifdef GTKHTML_HAVE_GCONF #include <gconf/gconf.h> #endif @@ -277,36 +279,6 @@ new_view_created_callback (EShell *shell, } -static void -upgrade_from_1_0_if_needed (void) -{ -#if 0 - EConfigListener *config_listener; - int result; - - config_listener = e_config_listener_new (); - - if (! force_upgrade - && e_config_listener_get_boolean_with_default (config_listener, "/apps/evolution/shell/upgrade_from_1_0_to_1_2_performed", - FALSE, NULL)) - return; - - g_print ("\nOlder configuration files detected, upgrading...\n"); - - result = system (PREFIX "/bin/evolution-mail-upgrade"); - - if (result == 0) - g_print ("\n--> Configuration files upgraded from version 1.0.\n"); - else - g_print ("\n*** Error upgrading configuration files -- status %d\n", result); - - e_config_listener_set_boolean (config_listener, "/apps/evolution/shell/upgrade_from_1_0_to_1_2_performed", TRUE); - - g_object_unref (config_listener); -#endif /* FIXME */ -} - - /* This is for doing stuff that requires the GTK+ loop to be running already. */ static gint @@ -322,8 +294,6 @@ idle_cb (void *data) gboolean display_default; gboolean displayed_any; - upgrade_from_1_0_if_needed (); - CORBA_exception_init (&ev); uri_list = (GSList *) data; @@ -505,8 +475,10 @@ main (int argc, char **argv) N_("Start in online mode"), NULL }, { "debug", '\0', POPT_ARG_STRING, &evolution_debug_log, 0, N_("Send the debugging output of all components to a file."), NULL }, +#if 0 { "force-upgrade", '\0', POPT_ARG_NONE, &force_upgrade, 0, N_("Force upgrading of configuration files from Evolution 1.0.x"), NULL }, +#endif POPT_AUTOHELP { NULL, '\0', 0, NULL, 0, NULL, NULL } }; @@ -576,6 +548,8 @@ main (int argc, char **argv) uri_list = g_slist_reverse (uri_list); g_value_unset (&popt_context_value); + e_config_upgrade(evolution_directory); + gtk_idle_add (idle_cb, uri_list); bonobo_main (); |