Mercurial > pidgin
diff src/request.h @ 8289:e39ea2b4f6cd
[gaim-migrate @ 9013]
- Moved GaimCheckAccountFunc into account.h, and renamed it to
GaimFilterAccountFunc.
- Added filter functions to the account field in the gaim_request_fields
API.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 19 Feb 2004 07:25:31 +0000 |
parents | 89d9d004e3f3 |
children | 09083081643a |
line wrap: on
line diff
--- a/src/request.h Thu Feb 19 00:00:37 2004 +0000 +++ b/src/request.h Thu Feb 19 07:25:31 2004 +0000 @@ -154,6 +154,8 @@ GaimAccount *account; gboolean show_all; + GaimFilterAccountFunc filter_func; + } account; } u; @@ -995,6 +997,18 @@ gboolean show_all); /** + * Sets the account filter function in an account field. + * + * This function will determine which accounts get displayed and which + * don't. + * + * @param field The account field. + * @param filter_func The account filter function. + */ +void gaim_request_field_account_set_filter(GaimRequestField *field, + GaimFilterAccountFunc filter_func); + +/** * Returns the default account in an account field. * * @param field The field. @@ -1026,6 +1040,19 @@ gboolean gaim_request_field_account_get_show_all( const GaimRequestField *field); +/** + * Returns the account filter function in an account field. + * + * This function will determine which accounts get displayed and which + * don't. + * + * @param field The account field. + * + * @return The account filter function. + */ +GaimFilterAccountFunc gaim_request_field_account_get_filter( + const GaimRequestField *field); + /*@}*/ /**************************************************************************/