How to refresh a buddy list

frederico schardong frede.sch at gmail.com
Thu Jun 18 10:26:30 EDT 2009


Libpurple work with te G-lib, and g-lib provide what you need:

http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-timeout-add


2009/6/18 Etan Reisner <pidgin at unreliablesource.net>:
> On Thu, Jun 18, 2009 at 02:41:58PM +0200, Cedric Roche wrote:
>>   Hi,
>>   I have a function that displays all buddies and their status. How do I use libpurple to make this function called periodically to refresh my list ?
>>   And more generaly, how do I get the buddies status changes event ?
>>
>>   Thanks
>
> If you really want your function to be called periodically you want the
> eventloop api (http://developer.pidgin.im/doxygen/dev/html/eventloop_8h.html)
> though I wouldn't suggest that as the way to do this sort of thing.
>
> Building the information once when your start up and then using signals to
> monitor for changes is likely a much better way, for that you need to look
> at the account signals, buddy list signals, and whatever other signals are
> relevent to your desired functionality
> (http://developer.pidgin.im/doxygen/dev/html/pages.html).
>
>    -Etan
>
> _______________________________________________
> Devel mailing list
> Devel at pidgin.im
> http://pidgin.im/cgi-bin/mailman/listinfo/devel
>



-- 
Abraço,
Frederico Schardong,
SOLIS - O lado livre da tecnologia
www.solis.coop.br




More information about the Devel mailing list