aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-02-19 20:31:06 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-02-19 20:31:06 +0800
commit1b782407524f2ca4a2dc4849098a21f9d1bdff09 (patch)
tree95a676e1deb4cec0c1e2930636e6953c87cb8022 /calendar
parent1a40acf554290883d6cf2a491dc36685842fd26b (diff)
downloadgsoc2013-evolution-1b782407524f2ca4a2dc4849098a21f9d1bdff09.tar
gsoc2013-evolution-1b782407524f2ca4a2dc4849098a21f9d1bdff09.tar.gz
gsoc2013-evolution-1b782407524f2ca4a2dc4849098a21f9d1bdff09.tar.bz2
gsoc2013-evolution-1b782407524f2ca4a2dc4849098a21f9d1bdff09.tar.lz
gsoc2013-evolution-1b782407524f2ca4a2dc4849098a21f9d1bdff09.tar.xz
gsoc2013-evolution-1b782407524f2ca4a2dc4849098a21f9d1bdff09.tar.zst
gsoc2013-evolution-1b782407524f2ca4a2dc4849098a21f9d1bdff09.zip
Fix crash on startup.
svn path=/branches/kill-bonobo/; revision=37295
Diffstat (limited to 'calendar')
-rw-r--r--calendar/modules/e-cal-shell-module.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/calendar/modules/e-cal-shell-module.c b/calendar/modules/e-cal-shell-module.c
index 740f755e85..a312173cdb 100644
--- a/calendar/modules/e-cal-shell-module.c
+++ b/calendar/modules/e-cal-shell-module.c
@@ -428,12 +428,10 @@ static GtkActionEntry source_entries[] = {
};
static void
-cal_module_init_preferences (void)
+cal_module_init_preferences (EShell *shell)
{
GtkWidget *preferences_window;
- EShell *shell;
- shell = e_shell_get_default ();
preferences_window = e_shell_get_preferences_window (shell);
e_preferences_window_add_page (
@@ -508,5 +506,5 @@ e_shell_module_init (GTypeModule *type_module)
shell, "window-created",
G_CALLBACK (cal_module_window_created_cb), shell_module);
- cal_module_init_preferences ();
+ cal_module_init_preferences (shell);
}