Deprecated purple_presence_add_list() and purple_presence_add_status()

View: New views
2 Messages — Rating Filter:   Alert me  

Deprecated purple_presence_add_list() and purple_presence_add_status()

by Felix Kerekes :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Right now those 2 functions are marked as deprecated because they're not in use. It makes sense since status types are usually returned as a static list in the initialisation phase and there's no need to alter them later on.

However, the Telepathy prpl brings in some complications due to the asynchronous way of working. When buddies are read from blist.xml, purple attempts to call status_types for a prpl that is not yet loaded, so buddies are left without any available statuses. The prpl would need to check for those buddies and add the statuses manually, therefore I propose to reintroduce these functions. Or is there any other solution?

_______________________________________________
Devel mailing list
Devel@...
http://pidgin.im/cgi-bin/mailman/listinfo/devel

Re: Deprecated purple_presence_add_list() and purple_presence_add_status()

by Mark Doliner :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

On Tue, Jun 9, 2009 at 10:56 AM, Felix Kerekes<sttwister@...> wrote:

> Right now those 2 functions are marked as deprecated because they're not in
> use. It makes sense since status types are usually returned as a static list
> in the initialisation phase and there's no need to alter them later on.
>
> However, the Telepathy prpl brings in some complications due to the
> asynchronous way of working. When buddies are read from blist.xml, purple
> attempts to call status_types for a prpl that is not yet loaded, so buddies
> are left without any available statuses. The prpl would need to check for
> those buddies and add the statuses manually, therefore I propose to
> reintroduce these functions. Or is there any other solution?

(This is a late response, but...)  That sounds like an acceptable
solution to me.  Our status API is definitely a little convoluted
right now.  Maybe we'll be able to find a way to simplify things in
3.0.0.

-Mark

_______________________________________________
Devel mailing list
Devel@...
http://pidgin.im/cgi-bin/mailman/listinfo/devel