From 2db009a1cf75d22e345a25dccff2706193e7950d Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 14 Sep 2012 10:27:16 +0200 Subject: Autocompletion in meeting editor doesn't work --- calendar/gui/e-select-names-editable.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'calendar/gui') diff --git a/calendar/gui/e-select-names-editable.c b/calendar/gui/e-select-names-editable.c index ae12fdc43f..9e18175b15 100644 --- a/calendar/gui/e-select-names-editable.c +++ b/calendar/gui/e-select-names-editable.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "e-select-names-editable.h" @@ -50,7 +51,16 @@ e_select_names_editable_init (ESelectNamesEditable *esne) ESelectNamesEditable * e_select_names_editable_new (void) { - return g_object_new (E_TYPE_SELECT_NAMES_EDITABLE, NULL); + EShell *shell; + + /* Might be cleaner to have 'registry' passed in, but the call chain + of this widget doesn't have access that low in the functions, thus + making the change without (private) API break. */ + shell = e_shell_get_default (); + + return g_object_new (E_TYPE_SELECT_NAMES_EDITABLE, + "registry", e_shell_get_registry (shell), + NULL); } gchar * -- cgit v1.2.3