Mercurial > pidgin
diff src/status.h @ 11249:b4b1be482b4e
[gaim-migrate @ 13418]
sf patch #1235519, from Sadrul Habib Chowdhury
This is a pretty big patch that makes Gaim correctly save and restore
the current status (away/available, away message, available message,
invisible, etc).
The GaimGtkStatusBoxWidget thing I think defaults to "Available"
every time its created, which overrides the setting that was saved
to the XML file. So that still needs to be fixed before this will
really work.
Anyway, mad props to Sadrul for putting up with my requests on this patch
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 13 Aug 2005 05:22:09 +0000 |
parents | 0754ce8f1122 |
children | 90be432e8385 |
line wrap: on
line diff
--- a/src/status.h Sat Aug 13 03:55:07 2005 +0000 +++ b/src/status.h Sat Aug 13 05:22:09 2005 +0000 @@ -437,13 +437,13 @@ const char *gaim_status_attr_get_name(const GaimStatusAttr *attr); /** - * Returns the value type of a status attribute. + * Returns the value of a status attribute. * * @param attr The status attribute. * - * @return The status attribute's value type. + * @return The status attribute's value. */ -GaimValue *gaim_status_attr_get_value_type(const GaimStatusAttr *attr); +GaimValue *gaim_status_attr_get_value(const GaimStatusAttr *attr); /*@}*/ @@ -496,6 +496,20 @@ va_list args); /** + * Sets whether or not a status is active. + * + * This should only be called by the account, conversation, and buddy APIs. + * + * @param status The status. + * @param active The active state. + * @param list A list of attributes to set on the status. This list is + * composed of key/value pairs, where each key is a valid + * attribute name for this GaimStatusType. + */ +void gaim_status_set_active_with_attrs_list(GaimStatus *status, gboolean active, + const GList *attrs); + +/** * Sets the boolean value of an attribute in a status with the specified ID. * * @param status The status.