Mercurial > pidgin.yaz
comparison src/request.h @ 6035:8c44020a958e
[gaim-migrate @ 6485]
gaim_request_input() now takes a masked bool, which, if enabled, masks the
text on the entry field so that it cannot be seen. Good for password input
requests, and what do you know, that's why this is written!
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 05 Jul 2003 21:54:19 +0000 |
parents | 158196b2db19 |
children | 41120df7ed94 |
comparison
equal
deleted
inserted
replaced
6034:5a0060191a77 | 6035:8c44020a958e |
---|---|
130 */ | 130 */ |
131 typedef struct | 131 typedef struct |
132 { | 132 { |
133 void *(*request_input)(const char *title, const char *primary, | 133 void *(*request_input)(const char *title, const char *primary, |
134 const char *secondary, const char *default_value, | 134 const char *secondary, const char *default_value, |
135 gboolean multiline, | 135 gboolean multiline, gboolean masked, |
136 const char *ok_text, GCallback ok_cb, | 136 const char *ok_text, GCallback ok_cb, |
137 const char *cancel_text, GCallback cancel_cb, | 137 const char *cancel_text, GCallback cancel_cb, |
138 void *user_data); | 138 void *user_data); |
139 void *(*request_choice)(const char *title, const char *primary, | 139 void *(*request_choice)(const char *title, const char *primary, |
140 const char *secondary, unsigned int default_value, | 140 const char *secondary, unsigned int default_value, |
640 * @param title The title of the message. | 640 * @param title The title of the message. |
641 * @param primary The main point of the message. | 641 * @param primary The main point of the message. |
642 * @param secondary The secondary information. | 642 * @param secondary The secondary information. |
643 * @param default_value The default value. | 643 * @param default_value The default value. |
644 * @param multiline TRUE if the inputted text can span multiple lines. | 644 * @param multiline TRUE if the inputted text can span multiple lines. |
645 * @param masked TRUE if the inputted text should be masked in some way. | |
645 * @param ok_text The text for the OK button. | 646 * @param ok_text The text for the OK button. |
646 * @param ok_cb The callback for the OK button. | 647 * @param ok_cb The callback for the OK button. |
647 * @param cancel_text The text for the cancel button. | 648 * @param cancel_text The text for the cancel button. |
648 * @param cancel_cb The callback for the cancel button. | 649 * @param cancel_cb The callback for the cancel button. |
649 * @param user_data The data to pass to the callback. | 650 * @param user_data The data to pass to the callback. |
650 * | 651 * |
651 * @return A UI-specific handle. | 652 * @return A UI-specific handle. |
652 */ | 653 */ |
653 void *gaim_request_input(void *handle, const char *title, | 654 void *gaim_request_input(void *handle, const char *title, |
654 const char *primary, const char *secondary, | 655 const char *primary, const char *secondary, |
655 const char *default_value, gboolean multiline, | 656 const char *default_value, |
657 gboolean multiline, gboolean masked, | |
656 const char *ok_text, GCallback ok_cb, | 658 const char *ok_text, GCallback ok_cb, |
657 const char *cancel_text, GCallback cancel_cb, | 659 const char *cancel_text, GCallback cancel_cb, |
658 void *user_data); | 660 void *user_data); |
659 | 661 |
660 /** | 662 /** |