Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
11738:992d49cf2b92 | 11739:a25be0e70a67 |
---|---|
1716 } | 1716 } |
1717 | 1717 |
1718 return NULL; | 1718 return NULL; |
1719 } | 1719 } |
1720 | 1720 |
1721 GaimStatusType * | |
1722 gaim_account_get_status_type_with_primitive(const GaimAccount *account, GaimStatusPrimitive primitive) | |
1723 { | |
1724 const GList *l; | |
1725 | |
1726 g_return_val_if_fail(account != NULL, NULL); | |
1727 | |
1728 for (l = gaim_account_get_status_types(account); l != NULL; l = l->next) | |
1729 { | |
1730 GaimStatusType *status_type = (GaimStatusType *)l->data; | |
1731 | |
1732 if (gaim_status_type_get_primitive(status_type) == primitive) | |
1733 return status_type; | |
1734 } | |
1735 | |
1736 return NULL; | |
1737 } | |
1738 | |
1721 GaimPresence * | 1739 GaimPresence * |
1722 gaim_account_get_presence(const GaimAccount *account) | 1740 gaim_account_get_presence(const GaimAccount *account) |
1723 { | 1741 { |
1724 g_return_val_if_fail(account != NULL, NULL); | 1742 g_return_val_if_fail(account != NULL, NULL); |
1725 | 1743 |