libpurple / Buddy list signal

Ka-Hing Cheung khc at hxbc.us
Thu Jun 25 13:09:27 EDT 2009


On Thu, 2009-06-25 at 14:05 +0200, Cedric Roche wrote:
> Hi,
> 
> I'm writing to you because I'm not getting any help form the list. I
> hope I don't  bother. Anyway here is my problem : I want to connect to
> the buddy-status-changed signal to be able to know whenever a buddy
> changes status. Here is what I did :
> 
> purple_signal_connect(purple_blist_get_handle(),
> "buddy-status-changed", &handle,
> 
> PURPLE_CALLBACK(buddy_status_changed), NULL);
> 
> The program is just entering the callback once, when the account
> logges in. But it never enters the callback when a  buddy changes
> status. Something must be missing in my code. Have you any idea ?

Do you have the complete code available?

-khc





More information about the Devel mailing list