Commit 162bd2e2 authored by Julien Bonjean's avatar Julien Bonjean

Basic tests

parent ab4cf8b8
......@@ -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;
......
......@@ -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:
......
......@@ -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;
}
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment