purple_conv_im_send works not as expected

Anatoliy Belsky anatoliy at belsky.info
Sun Nov 25 03:07:19 EST 2007


Thanks Cheung, 

it works so. 

I've tryed also something like

	while(!purple_account_is_connected(account)) {}

or just waiting for 10 seconds, but it seems not to work. But, as Daniel 
mentioned, the "Libpurple was designed to drive a single-threaded UI client",
so from this point it's clear why it's not working this way.

many thanks for your help

anatoliy

On Saturday 24 November 2007 23:56, Ka-Hing Cheung wrote:
> On Sat, 2007-11-24 at 16:24 +0100, Anatoliy Belsky wrote:
> > 	purple_signal_connect(purple_connections_get_handle(), "signed-on",
> > 			&handle,  PURPLE_CALLBACK(signed_on), NULL);
> >
> >         conv = purple_conversation_new(PURPLE_CONV_TYPE_IM,
> >  			account, "account2 at hotmail.com)");
> >         purple_conv_im_send(PURPLE_CONV_IM(conv), "hi there!");
>
> When your account is connected, signed_on() is called. You should do
> your im_send stuff there.
>
> -khc
>
>
> _______________________________________________
> Devel mailing list
> Devel at pidgin.im
> http://pidgin.im/cgi-bin/mailman/listinfo/devel




More information about the Devel mailing list