Mercurial > pidgin
comparison src/request.c @ 7905:1d0bc32f8038
[gaim-migrate @ 8565]
This should be sufficient for a working label field type.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Sun, 21 Dec 2003 09:04:43 +0000 |
| parents | 9b478c6e0bfa |
| children | 5be22af4ebfc |
comparison
equal
deleted
inserted
replaced
| 7904:9b478c6e0bfa | 7905:1d0bc32f8038 |
|---|---|
| 760 g_return_val_if_fail(field->type == GAIM_REQUEST_FIELD_LIST, NULL); | 760 g_return_val_if_fail(field->type == GAIM_REQUEST_FIELD_LIST, NULL); |
| 761 | 761 |
| 762 return field->u.list.items; | 762 return field->u.list.items; |
| 763 } | 763 } |
| 764 | 764 |
| 765 GaimRequestField * | |
| 766 gaim_request_field_label_new(const char *id, const char *text) | |
| 767 { | |
| 768 GaimRequestField *field; | |
| 769 | |
| 770 g_return_val_if_fail(id != NULL, NULL); | |
| 771 g_return_val_if_fail(text != NULL, NULL); | |
| 772 | |
| 773 field = gaim_request_field_new(id, text, GAIM_REQUEST_FIELD_LABEL); | |
| 774 | |
| 775 return field; | |
| 776 } | |
| 777 | |
| 765 /* -- */ | 778 /* -- */ |
| 766 | 779 |
| 767 void * | 780 void * |
| 768 gaim_request_input(void *handle, const char *title, const char *primary, | 781 gaim_request_input(void *handle, const char *title, const char *primary, |
| 769 const char *secondary, const char *default_value, | 782 const char *secondary, const char *default_value, |
