Mercurial > pidgin
comparison src/status.c @ 10196:760e690a5f30
[gaim-migrate @ 11313]
A few steps closer to being able to set an oscar away message.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 16 Nov 2004 23:29:53 +0000 |
parents | 0109f3a518d2 |
children | 7369bf2bf593 |
comparison
equal
deleted
inserted
replaced
10195:fa4973f356a1 | 10196:760e690a5f30 |
---|---|
748 | 748 |
749 /* Make sure this attribute exists. */ | 749 /* Make sure this attribute exists. */ |
750 attr = gaim_status_type_get_attr(status_type, id); | 750 attr = gaim_status_type_get_attr(status_type, id); |
751 g_return_if_fail(attr != NULL); | 751 g_return_if_fail(attr != NULL); |
752 | 752 |
753 attr_value = gaim_status_attr_get_value_type(attr); | 753 attr_value = gaim_status_get_attr_value(status, id); |
754 g_return_if_fail(gaim_value_get_type(attr_value) == GAIM_TYPE_STRING); | 754 g_return_if_fail(gaim_value_get_type(attr_value) == GAIM_TYPE_STRING); |
755 | 755 |
756 gaim_value_set_string(attr_value, value); | 756 gaim_value_set_string(attr_value, value); |
757 } | 757 } |
758 | 758 |
831 | 831 |
832 return (primitive != GAIM_STATUS_UNSET && | 832 return (primitive != GAIM_STATUS_UNSET && |
833 primitive != GAIM_STATUS_OFFLINE); | 833 primitive != GAIM_STATUS_OFFLINE); |
834 } | 834 } |
835 | 835 |
836 /* | |
837 * What's the difference between | |
838 * gaim_status_get_attr_value(GaimStatus *status, const char *id) | |
839 * gaim_status_attr_get_value_type(GaimStatusAttr *attr) | |
840 * and I think there was another similar one... | |
841 */ | |
836 GaimValue * | 842 GaimValue * |
837 gaim_status_get_attr_value(const GaimStatus *status, const char *id) | 843 gaim_status_get_attr_value(const GaimStatus *status, const char *id) |
838 { | 844 { |
839 GaimStatusType *status_type; | 845 GaimStatusType *status_type; |
840 GaimStatusAttr *attr; | 846 GaimStatusAttr *attr; |