aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/modules/e-cal-shell-module.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/modules/e-cal-shell-module.c')
-rw-r--r--calendar/modules/e-cal-shell-module.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/modules/e-cal-shell-module.c b/calendar/modules/e-cal-shell-module.c
index 0fa0336177..740f755e85 100644
--- a/calendar/modules/e-cal-shell-module.c
+++ b/calendar/modules/e-cal-shell-module.c
@@ -431,8 +431,10 @@ static void
cal_module_init_preferences (void)
{
GtkWidget *preferences_window;
+ EShell *shell;
- preferences_window = e_shell_get_preferences_window ();
+ shell = e_shell_get_default ();
+ preferences_window = e_shell_get_preferences_window (shell);
e_preferences_window_add_page (
E_PREFERENCES_WINDOW (preferences_window),