diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-19 20:31:06 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-19 20:31:06 +0800 |
commit | 1b782407524f2ca4a2dc4849098a21f9d1bdff09 (patch) | |
tree | 95a676e1deb4cec0c1e2930636e6953c87cb8022 /addressbook/gui/component/autocompletion-config.c | |
parent | 1a40acf554290883d6cf2a491dc36685842fd26b (diff) | |
download | gsoc2013-evolution-1b782407524f2ca4a2dc4849098a21f9d1bdff09.tar.gz gsoc2013-evolution-1b782407524f2ca4a2dc4849098a21f9d1bdff09.tar.zst gsoc2013-evolution-1b782407524f2ca4a2dc4849098a21f9d1bdff09.zip |
Fix crash on startup.
svn path=/branches/kill-bonobo/; revision=37295
Diffstat (limited to 'addressbook/gui/component/autocompletion-config.c')
-rw-r--r-- | addressbook/gui/component/autocompletion-config.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/addressbook/gui/component/autocompletion-config.c b/addressbook/gui/component/autocompletion-config.c index a58e1f3195..3341f26147 100644 --- a/addressbook/gui/component/autocompletion-config.c +++ b/addressbook/gui/component/autocompletion-config.c @@ -24,12 +24,11 @@ #include "autocompletion-config.h" -#include <e-shell.h> -#include <libedataserverui/e-name-selector-entry.h> #include <gtk/gtk.h> #include <glib/gi18n.h> #include <libedataserver/e-source-list.h> #include <libedataserverui/e-source-selector.h> +#include <libedataserverui/e-name-selector-entry.h> #include "widgets/misc/e-preferences-window.h" @@ -93,13 +92,14 @@ initialize_selection (ESourceSelector *source_selector) } void -autocompletion_config_init (void) +autocompletion_config_init (EShell *shell) { ESourceList *source_list; GtkWidget *scrolled_window; GtkWidget *source_selector; GtkWidget *preferences_window; - EShell *shell; + + g_return_if_fail (E_IS_SHELL (shell)); source_list = e_source_list_new_for_gconf_default ( "/apps/evolution/addressbook/sources"); @@ -125,7 +125,6 @@ autocompletion_config_init (void) initialize_selection (E_SOURCE_SELECTOR (source_selector)); - shell = e_shell_get_default (); preferences_window = e_shell_get_preferences_window (shell); e_preferences_window_add_page ( |