Mercurial > pidgin
diff src/savedstatuses.h @ 13012:e3b9c6c7bcf6
[gaim-migrate @ 15365]
Don't create duplicate transient statuses. So like, if you switch between
"Available" and "Away" a bunch of times and use the same message everywhere,
you'll only have one of each in your list of recent statuses
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Mon, 23 Jan 2006 04:54:37 +0000 |
| parents | e5f780a6137b |
| children | e2a94ab60a7e |
line wrap: on
line diff
--- a/src/savedstatuses.h Mon Jan 23 04:25:04 2006 +0000 +++ b/src/savedstatuses.h Mon Jan 23 04:54:37 2006 +0000 @@ -208,6 +208,18 @@ GaimSavedStatus *gaim_savedstatus_find_by_creation_time(time_t creation_time); /** + * Finds a saved status with the specified primitive and message. + * + * @param type The GaimStatusPrimitive for the status you're trying + * to find. + * @param message The message for the status you're trying + * to find. + * + * @return The saved status if found, or NULL. + */ +GaimSavedStatus *gaim_savedstatus_find_by_type_and_message(GaimStatusPrimitive type, const char *message); + +/** * Determines if a given saved status is "transient." * A transient saved status is one that was not * explicitly added by the user. Transient statuses
