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 /calendar | |
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 'calendar')
-rw-r--r-- | calendar/gui/dialogs/cal-prefs-dialog.c | 5 | ||||
-rw-r--r-- | calendar/gui/dialogs/cal-prefs-dialog.h | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c index 410f8cb104..179dd25ca2 100644 --- a/calendar/gui/dialogs/cal-prefs-dialog.c +++ b/calendar/gui/dialogs/cal-prefs-dialog.c @@ -847,10 +847,13 @@ calendar_prefs_dialog_get_type (void) } GtkWidget * -calendar_prefs_dialog_new (EShell *shell) +calendar_prefs_dialog_new (EPreferencesWindow *window) { + EShell *shell; CalendarPrefsDialog *dialog; + shell = e_preferences_window_get_shell (window); + g_return_val_if_fail (E_IS_SHELL (shell), NULL); dialog = g_object_new (CALENDAR_TYPE_PREFS_DIALOG, NULL); diff --git a/calendar/gui/dialogs/cal-prefs-dialog.h b/calendar/gui/dialogs/cal-prefs-dialog.h index e01399fba0..869003f664 100644 --- a/calendar/gui/dialogs/cal-prefs-dialog.h +++ b/calendar/gui/dialogs/cal-prefs-dialog.h @@ -27,7 +27,7 @@ #include <gtk/gtk.h> #include <gconf/gconf-client.h> #include <libedataserverui/e-source-selector.h> -#include <shell/e-shell.h> +#include <widgets/misc/e-preferences-window.h> /* Standard GObject macros */ #define CALENDAR_TYPE_PREFS_DIALOG \ @@ -106,7 +106,7 @@ struct _CalendarPrefsDialogClass { }; GType calendar_prefs_dialog_get_type (void); -GtkWidget * calendar_prefs_dialog_new (EShell *shell); +GtkWidget * calendar_prefs_dialog_new (EPreferencesWindow *window); G_END_DECLS |