diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-08-11 04:17:40 +0800 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-08-11 04:17:40 +0800 |
commit | 18813ccd8f4367ac98348f08e183d858cfe963f5 (patch) | |
tree | 370b866001d65bd5d1c343331bd01d8d4df3f975 /modules/mail/em-account-prefs.c | |
parent | abd3e2a257586a96cac80f9ac860bba3c3d65d30 (diff) | |
download | gsoc2013-evolution-18813ccd8f4367ac98348f08e183d858cfe963f5.tar.gz gsoc2013-evolution-18813ccd8f4367ac98348f08e183d858cfe963f5.tar.zst gsoc2013-evolution-18813ccd8f4367ac98348f08e183d858cfe963f5.zip |
Defer the load / creation of configuration UI with changes to
e_preferences_window to take factory callbacks and store a reference
to the shell. - This makes start-up substantially faster, particularly
on Atom (eg.).
Remove a number of idle handlers used to create these UIs in the
first instance, cleaning the code.
Diffstat (limited to 'modules/mail/em-account-prefs.c')
-rw-r--r-- | modules/mail/em-account-prefs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/mail/em-account-prefs.c b/modules/mail/em-account-prefs.c index 90aaa968f7..310f18ed7b 100644 --- a/modules/mail/em-account-prefs.c +++ b/modules/mail/em-account-prefs.c @@ -33,6 +33,7 @@ #include <glib/gi18n.h> #include "e-util/e-alert-dialog.h" +#include "e-util/e-account-utils.h" #include "e-mail-store.h" #include "em-config.h" @@ -326,8 +327,12 @@ em_account_prefs_get_type (void) } GtkWidget * -em_account_prefs_new (EAccountList *account_list) +em_account_prefs_new (EPreferencesWindow *window) { + EAccountList *account_list; + + account_list = e_get_account_list (); + g_return_val_if_fail (E_IS_ACCOUNT_LIST (account_list), NULL); return g_object_new ( |