Buddy List Signals

Mark Doliner mark at kingant.net
Mon Jun 22 12:06:04 EDT 2009


On Mon, Jun 22, 2009 at 4:39 AM, Cedric Roche<csced at hotmail.com> wrote:
> 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 *buddy, PurpleStatus *old_status,
> PurpleStatus *status);
>
> Thanks

That looks correct to me.  I would guess that there is something else
wrong.  Are you sure your plugin is loaded?  Is the call to
purple_signal_connect() definitely getting called?

-Mark




More information about the Devel mailing list