Buddy List Signals

Paul Aurich paul at darkrain42.org
Mon Jun 22 12:35:16 EDT 2009


And Cedric Roche spoke on 06/22/2009 04:39 AM, saying:
> Hi,
> 
> I want to connect to the buddy list signals but I can't get it to work.
> The programs never enters my callback. Here is how I try to do it :
> 
> 
> 
> static int handle;
> 
> purple_signal_connect(purple_blist_get_handle(), "buddy-status-changed",
> purple_pounces_get_handle(),
> 
> PURPLE_CALLBACK(buddy_away), NULL);
> 
> 
> The prototype off the callback is the same as in the documentation pages :
> 
> void (*buddy_away)(PurpleBuddy <http://developer.pidgin.im/doxygen/dev/html/struct__PurpleBuddy.html> *buddy, PurpleStatus *old_status, PurpleStatus *status);
> 
> 
> Thanks
> 

You should be using "&handle" instead of "purple_pounces_get_handle()".

~Paul




More information about the Devel mailing list