How to manipulate status on a prpl with NULL status IDs?

Evan Schoenberg evan.s at dreskin.net
Fri Jan 16 21:30:42 EST 2009


On Jan 15, 2009, at 11:52 PM, Richard Laager wrote:

> On Thu, 2009-01-15 at 17:15 -0500, Evan Schoenberg wrote:
>> What's a UI to do?
>
> I'm no status guru, but purple_status_type_new_with_attrs() calls
> purple_status_type_new_full(). It includes this code:
>
>        if (id != NULL)
>                status_type->id = g_strdup(id);
>        else
>                status_type->id =  
> g_strdup(purple_primitive_get_id_from_type(primitive));
>
> I would suggest trying the ID of the underlying primitive. Hopefully
> that'll work.

Yup, that works great, thanks.  I'll update the doxygen in the header  
files to reflect this fact.

-Evan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
URL: <http://pidgin.im/pipermail/devel/attachments/20090116/3158f05a/attachment.sig>


More information about the Devel mailing list