On Tue, 2007-05-01 at 20:35 +0200, Julien Puydt wrote:
Hi,
I had wonderful code (of course) working wonderfully (of course) since
long. Hélas! This week, I recompiled and ran it to discover it doesn't
work anymore: the e_contact_get_const api seems to return NULL whatever
the contact.
On #evolution, evaSDK could reproduce the problem, and told me to report
to this list.
Snark
PS: I do have a minimalist example, which should help :
#include libebook/e-book.h
/* gcc -Wextra test.c -o test `pkg-config --cflags --libs libebook-1.2`
*/
int
main (int argc,
char *argv [])
{
const gchar *vcard =
BEGIN:VCARD\n
VERSION:3.0\n
FN:Test\n
TEL;TYPE=Video:sip:[EMAIL PROTECTED]
UID:pas-id-463224CE\n
REV:2007-04-30T19:15:39Z\n
CATEGORIES:Test,Group\n
TEL;TYPE=Home:sip:[EMAIL PROTECTED]
TEL;TYPE=Home;TYPE=VOICE:sip:[EMAIL PROTECTED]
TEL;TYPE=CELL:123.123.123.123\n
See it works now.
-Srini.
END:VCARD;
EContact *econtact = NULL;
g_type_init ();
econtact = e_contact_new_from_vcard (vcard1);
g_print (Home phone: %s\n, e_contact_get_const (econtact,
E_CONTACT_PHONE_HOME));
g_object_unref (econtact);
return 0;
}
___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers
___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers