Index: libedataserverui/e-name-selector-entry.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserverui/e-name-selector-entry.c,v
retrieving revision 1.38
diff -u -p -r1.38 e-name-selector-entry.c
--- libedataserverui/e-name-selector-entry.c	27 Jul 2006 11:21:28 -0000	1.38
+++ libedataserverui/e-name-selector-entry.c	7 Aug 2006 08:27:22 -0000
@@ -46,10 +46,9 @@ enum {
 	LAST_SIGNAL
 };
 static guint signals[LAST_SIGNAL] = { 0 };
+static guint COMPLETION_CUE_MIN_LEN = 0;
 #define ENS_DEBUG(x)
 
-#define COMPLETION_CUE_MIN_LEN 3
-
 G_DEFINE_TYPE (ENameSelectorEntry, e_name_selector_entry, GTK_TYPE_ENTRY);
 
 typedef struct _ENameSelectorEntryPrivate	ENameSelectorEntryPrivate;
@@ -2140,6 +2139,15 @@ e_name_selector_entry_init (ENameSelecto
 	  g_warning ("ENameSelectorEntry can't find any addressbooks!");
 	  return;
   }
+
+  /* read minimum_query_length from gconf*/
+  GConfClient *gconf;
+  gconf = gconf_client_get_default();
+  if (COMPLETION_CUE_MIN_LEN == 0) {
+	  if (COMPLETION_CUE_MIN_LEN = gconf_client_get_int (gconf, MINIMUM_QUERY_LENGTH, NULL));
+	  else COMPLETION_CUE_MIN_LEN = 3;
+  }
+  g_object_unref (G_OBJECT (gconf));
 
   /* Edit signals */
 
Index: libedataserverui/e-name-selector-entry.h
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserverui/e-name-selector-entry.h,v
retrieving revision 1.8
diff -u -p -r1.8 e-name-selector-entry.h
--- libedataserverui/e-name-selector-entry.h	21 Jul 2006 08:10:59 -0000	1.8
+++ libedataserverui/e-name-selector-entry.h	7 Aug 2006 08:27:37 -0000
@@ -39,6 +39,8 @@ G_BEGIN_DECLS
 #define E_IS_NAME_SELECTOR_ENTRY_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), e_name_selector_entry_get_type ()))
 #define E_NAME_SELECTOR_ENTRY_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), E_NAME_SELECTOR_ENTRY_TYPE, ENameSelectorEntryClass))
 
+#define MINIMUM_QUERY_LENGTH "/apps/evolution/addressbook/completion/minimum_query_length"
+
 typedef struct ENameSelectorEntry      ENameSelectorEntry;
 typedef struct ENameSelectorEntryClass ENameSelectorEntryClass;
 
