Mercurial > pidgin
diff src/account.c @ 11739:a25be0e70a67
[gaim-migrate @ 14030]
I changed the GtkStatusBox list stores to use an enum instead of a string
to identify the items in the GtkStatusBox. This feels a lot cleaner to me
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 23 Oct 2005 06:46:07 +0000 |
parents | a14d72b6ca41 |
children | 52f27ffe68a5 |
line wrap: on
line diff
--- a/src/account.c Sun Oct 23 04:48:01 2005 +0000 +++ b/src/account.c Sun Oct 23 06:46:07 2005 +0000 @@ -1718,6 +1718,24 @@ return NULL; } +GaimStatusType * +gaim_account_get_status_type_with_primitive(const GaimAccount *account, GaimStatusPrimitive primitive) +{ + const GList *l; + + g_return_val_if_fail(account != NULL, NULL); + + for (l = gaim_account_get_status_types(account); l != NULL; l = l->next) + { + GaimStatusType *status_type = (GaimStatusType *)l->data; + + if (gaim_status_type_get_primitive(status_type) == primitive) + return status_type; + } + + return NULL; +} + GaimPresence * gaim_account_get_presence(const GaimAccount *account) {