[evolution] Autocompletion in meeting editor doesn't work



commit 2db009a1cf75d22e345a25dccff2706193e7950d
Author: Milan Crha <mcrha redhat com>
Date:   Fri Sep 14 10:27:16 2012 +0200

    Autocompletion in meeting editor doesn't work

 calendar/gui/e-select-names-editable.c |   12 +++++++++++-
 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 ae12fdc..9e18175 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 *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]