Mercurial > pidgin
diff src/request.h @ 7047:7d1909655fd0
[gaim-migrate @ 7610]
Add core support for masking string fields in multi-request dialogs, and
setting string fields so that they can't be modified.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 30 Sep 2003 02:26:32 +0000 |
parents | feb3d21a7794 |
children | 9c0ea21997a9 |
line wrap: on
line diff
--- a/src/request.h Tue Sep 30 01:50:39 2003 +0000 +++ b/src/request.h Tue Sep 30 02:26:32 2003 +0000 @@ -67,6 +67,8 @@ struct { gboolean multiline; + gboolean masked; + gboolean editable; char *default_value; char *value; @@ -410,6 +412,25 @@ const char *value); /** + * Sets whether or not a string field is masked + * (commonly used for password fields). + * + * @param field The field. + * @param masked The masked value. + */ +void gaim_request_field_string_set_masked(GaimRequestField *field, + gboolean masked); + +/** + * Sets whether or not a string field is editable. + * + * @param field The field. + * @param editable The editable value. + */ +void gaim_request_field_string_set_editable(GaimRequestField *field, + gboolean editable); + +/** * Returns the default value in a string field. * * @param field The field. @@ -437,6 +458,24 @@ */ gboolean gaim_request_field_string_is_multiline(const GaimRequestField *field); +/** + * Returns whether or not a string field is masked. + * + * @param field The field. + * + * @return @c TRUE if the field is masked, or @c FALSE otherwise. + */ +gboolean gaim_request_field_string_is_masked(const GaimRequestField *field); + +/** + * Returns whether or not a string field is editable. + * + * @param field The field. + * + * @return @c TRUE if the field is editable, or @c FALSE otherwise. + */ +gboolean gaim_request_field_string_is_editable(const GaimRequestField *field); + /*@}*/ /**************************************************************************/