diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-03-28 09:16:56 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-03-28 10:08:48 +0800 |
commit | 4c5e629f518fa03610e69c970337d9f7d625a50b (patch) | |
tree | a6713e509a2db09b6361d7ea9c1a74fdeace0267 /calendar/gui/e-select-names-editable.c | |
parent | 5ece5b9483db0ca246eea687c4e883d38306aff4 (diff) | |
download | gsoc2013-evolution-4c5e629f518fa03610e69c970337d9f7d625a50b.tar gsoc2013-evolution-4c5e629f518fa03610e69c970337d9f7d625a50b.tar.gz gsoc2013-evolution-4c5e629f518fa03610e69c970337d9f7d625a50b.tar.bz2 gsoc2013-evolution-4c5e629f518fa03610e69c970337d9f7d625a50b.tar.lz gsoc2013-evolution-4c5e629f518fa03610e69c970337d9f7d625a50b.tar.xz gsoc2013-evolution-4c5e629f518fa03610e69c970337d9f7d625a50b.tar.zst gsoc2013-evolution-4c5e629f518fa03610e69c970337d9f7d625a50b.zip |
Bug 696715 - ESelectNamesEditable needs an EClientCache
Diffstat (limited to 'calendar/gui/e-select-names-editable.c')
-rw-r--r-- | calendar/gui/e-select-names-editable.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/calendar/gui/e-select-names-editable.c b/calendar/gui/e-select-names-editable.c index b9a2b1ddc0..2cc4a767b3 100644 --- a/calendar/gui/e-select-names-editable.c +++ b/calendar/gui/e-select-names-editable.c @@ -49,19 +49,13 @@ e_select_names_editable_init (ESelectNamesEditable *esne) } GtkWidget * -e_select_names_editable_new (void) +e_select_names_editable_new (EClientCache *client_cache) { - 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 (); + g_return_val_if_fail (E_IS_CLIENT_CACHE (client_cache), NULL); return g_object_new ( E_TYPE_SELECT_NAMES_EDITABLE, - "registry", e_shell_get_registry (shell), - NULL); + "client-cache", client_cache, NULL); } gchar * |