From 18813ccd8f4367ac98348f08e183d858cfe963f5 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 10 Aug 2010 21:17:40 +0100 Subject: 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. --- modules/mail/em-mailer-prefs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/mail/em-mailer-prefs.c') diff --git a/modules/mail/em-mailer-prefs.c b/modules/mail/em-mailer-prefs.c index 80163a4713..7a6b86da18 100644 --- a/modules/mail/em-mailer-prefs.c +++ b/modules/mail/em-mailer-prefs.c @@ -1237,9 +1237,10 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs, } GtkWidget * -em_mailer_prefs_new (EShell *shell) +em_mailer_prefs_new (EPreferencesWindow *window) { EMMailerPrefs *new; + EShell *shell = e_preferences_window_get_shell (window); g_return_val_if_fail (E_IS_SHELL (shell), NULL); -- cgit v1.2.3