Mercurial > pidgin
comparison src/request.c @ 5809:0a661f6d65e3
[gaim-migrate @ 6239]
Added a function for getting a list of labels in a choice entry field.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Sun, 08 Jun 2003 07:24:17 +0000 |
| parents | 133e86584f4b |
| children | 327bc2f78340 |
comparison
equal
deleted
inserted
replaced
| 5808:133e86584f4b | 5809:0a661f6d65e3 |
|---|---|
| 565 g_return_val_if_fail(field->type == GAIM_REQUEST_FIELD_CHOICE, -1); | 565 g_return_val_if_fail(field->type == GAIM_REQUEST_FIELD_CHOICE, -1); |
| 566 | 566 |
| 567 return field->u.choice.value; | 567 return field->u.choice.value; |
| 568 } | 568 } |
| 569 | 569 |
| 570 GList * | |
| 571 gaim_request_field_choice_get_labels(const GaimRequestField *field) | |
| 572 { | |
| 573 g_return_val_if_fail(field != NULL, NULL); | |
| 574 g_return_val_if_fail(field->type == GAIM_REQUEST_FIELD_CHOICE, NULL); | |
| 575 | |
| 576 return field->u.choice->labels; | |
| 577 } | |
| 578 | |
| 570 /* -- */ | 579 /* -- */ |
| 571 | 580 |
| 572 void * | 581 void * |
| 573 gaim_request_input(void *handle, const char *title, const char *primary, | 582 gaim_request_input(void *handle, const char *title, const char *primary, |
| 574 const char *secondary, const char *default_value, | 583 const char *secondary, const char *default_value, |
