[Telepathy] obtaining handles to contacts to establish a text channel
Sjoerd Simons
sjoerd at luon.net
Tue Feb 19 01:16:15 PST 2008
On Mon, Feb 18, 2008 at 08:16:13PM -0500, harini satyanarayanan wrote:
> It throws an error that didnt get handle for contact. If this is wrong
> then how do i mention the contact to which i have to send the message.
>
> const gchar* lists1[] = { "contact at gmail.com", NULL };
> GArray *handles1 = NULL;
>
> if (!tp_conn_request_handles (DBUS_G_PROXY(tp_connection),
> TP_HANDLE_TYPE_CONTACT, lists, &handles1, &error)) {
>
> g_warning("Didn't get a handle for the '%s' list\n", lists1[0]);
I don't see any obvious mistakes here. But you might want to print
error->message, to see what causes RequestHandles to fail.
Sjoerd
--
It is now quite lawful for a Catholic woman to avoid pregnancy by a resort to
mathematics, though she is still forbidden to resort to physics and chemistry.
-- H. L. Mencken
More information about the Telepathy
mailing list