From d0636dedefc60f584cc79127e7f3d5cf691413cb Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 28 Aug 2002 19:15:29 +0000 Subject: We now always need to init gconf for our later call to e_proxy_init() 2002-08-28 Jeffrey Stedfast * main.c (main): We now always need to init gconf for our later call to e_proxy_init() which initialises the proxy settings for soup to use. svn path=/trunk/; revision=17897 --- mail/ChangeLog | 6 ++++++ mail/main.c | 35 +++++++++++++++++------------------ 2 files changed, 23 insertions(+), 18 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index e734feb71b..14ee1c83b2 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2002-08-28 Jeffrey Stedfast + + * main.c (main): We now always need to init gconf for our later + call to e_proxy_init() which initialises the proxy settings for + soup to use. + 2002-08-28 Peter Williams * folder-browser-ui.c (default_ui_nodes): Add some new flags for diff --git a/mail/main.c b/mail/main.c index 8be41242c8..7158fc3bbb 100644 --- a/mail/main.c +++ b/mail/main.c @@ -22,15 +22,14 @@ #include #include -#ifdef GTKHTML_HAVE_GCONF #include -#endif #include #include #include #include "e-util/e-passwords.h" +#include "e-util/e-proxy.h" #include "component-factory.h" #include "composer/evolution-composer.h" @@ -113,9 +112,9 @@ main (int argc, char *argv []) gnome_segv_handler = osa.sa_handler; g_static_mutex_lock (&segv_mutex); } - + orb = oaf_init (argc, argv); - + if (bonobo_init (orb, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL) == FALSE) { g_error ("Mail component could not initialize Bonobo.\n" @@ -123,22 +122,22 @@ main (int argc, char *argv []) "RootPOA, it probably means\nyou compiled " "Bonobo against GOAD instead of OAF."); } - + gtk_widget_push_visual (gdk_rgb_get_visual ()); gtk_widget_push_colormap (gdk_rgb_get_cmap ()); - -#ifdef GTKHTML_HAVE_GCONF + gconf_init (argc, argv, NULL); -#endif - + glade_gnome_init (); - + gnome_vfs_init (); e_cursors_init (); - + + e_proxy_init (); + e_passwords_init ("Mail"); - + mail_config_init (); mail_msg_init (); @@ -146,23 +145,23 @@ main (int argc, char *argv []) component_factory_init (); evolution_composer_factory_init (composer_send_cb, composer_save_draft_cb); - + if (gdk_threads_mutex) { g_mutex_free (gdk_threads_mutex); gdk_threads_mutex = NULL; } - + g_print ("Evolution Mail ready and running.\n"); - + GDK_THREADS_ENTER (); bonobo_main (); - + mail_msg_cleanup(); - + GDK_THREADS_LEAVE (); mail_config_write_on_exit (); - + e_passwords_shutdown (); gnome_sound_shutdown (); -- cgit v1.2.3