diff --git a/sflphone-gtk/src/calltree.c b/sflphone-gtk/src/calltree.c
index f06638d884a0ec47e39b7541df18affd440af5d5..1b4dcc9d73dc17c8c6820b52b33ec76a6a518b1d 100644
--- a/sflphone-gtk/src/calltree.c
+++ b/sflphone-gtk/src/calltree.c
@@ -27,7 +27,7 @@
 #include <calllist.h>
 #include <menus.h>
 #include <dbus.h>
-
+#include <contactlist/eds.h>
 
 
 GtkWidget   * toolbar;
@@ -205,7 +205,41 @@ toggle_contacts(GtkToggleToolButton *toggle_tool_button UNUSED,
 {
 
   GtkTreeSelection *sel;
+  GList *results;
+  GList *i;
+
+  //gtk_init (&argc, &argv);
+  init();
+  results = search_sync ("s", 50);
+
+  if(results == NULL)
+  {
+    printf("null\n");
+    return -1;
+  }
 
+  for (i = results; i != NULL; i = i->next)
+  {
+    Hit *entry;
+    entry = i->data;
+    if (i->data)
+    {
+      call_t * call;
+
+      call = g_new0 (call_t, 1);
+      call->accountID = g_strdup("Account:1235677223");
+      //call->callID = g_strdup("468809080");
+      call->callID = g_new0(gchar, 30);
+      g_sprintf(call->callID, "%d", rand());
+      call->to = g_strdup("\"\" <66e>");
+      call->from = g_strconcat("\"\" <", entry->text , ">");
+      call->state = CALL_STATE_RECORD;
+      call->history_state = OUTGOING;
+
+      call_list_add (contacts, call);
+      update_call_tree_add(contacts,call);
+    }
+  }
   /*
   call_t * call;
 
diff --git a/sflphone-gtk/src/contactlist/Makefile b/sflphone-gtk/src/contactlist/Makefile
index d72efee36a8d6d0e2fa887f43e81cd158b47218c..353e6f35046f24973cc20034ece14247aa487b47 100644
--- a/sflphone-gtk/src/contactlist/Makefile
+++ b/sflphone-gtk/src/contactlist/Makefile
@@ -184,7 +184,7 @@ libcontact_la_SOURCES = \
 			eds.c
 
 libcontact_la_LDFLAGS = -pthread -lebook-1.2 -lgnome-2 -lpopt -ledataserver-1.2 -lxml2 -lgconf-2 -lsoup-2.4 -lbonobo-2 -lbonobo-activation -lORBit-2 -lgthread-2.0 -lrt -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype -lz -lfontconfig -lgmodule-2.0 -lgobject-2.0 -lglib-2.0
-libcontact_la_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/evolution-data-server-2.24 -I/usr/include/libbonobo-2.0 -I/usr/include/libgnome-2.0
+libcontact_la_CFLAGS = -DORBIT2=1 -pthread -I/usr/include/evolution-data-server-2.24 -I/usr/include/libbonobo-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/libxml2 -I/usr/include/libsoup-2.4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pygtk-2.0
 all: all-am
 
 .SUFFIXES:
diff --git a/sflphone-gtk/src/contactlist/eds.c b/sflphone-gtk/src/contactlist/eds.c
index 727e0346d62786f5f597c2d19c6a9d0b09395ee3..fb075514e7cf6395af6fd6febf331a0d2a38f49b 100644
--- a/sflphone-gtk/src/contactlist/eds.c
+++ b/sflphone-gtk/src/contactlist/eds.c
@@ -21,7 +21,7 @@ static int n_search_fields = G_N_ELEMENTS (search_fields) - 1;
 
 
 
-
+/*
 int
 main (int argc, char *argv[])
 {
@@ -54,7 +54,7 @@ printf("fini\n");
 
 return 0;
 }
-
+*/