aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/gui/e-select-names-editable.c12
1 files changed, 11 insertions, 1 deletions
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 <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <libebook/libebook.h>
+#include <shell/e-shell.h>
#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 *