Mercurial > pidgin
comparison src/request.h @ 7964:a5c70e43ee43
[gaim-migrate @ 8641]
The multiple item list should now prevent against multiple selections when
it's a non-multi-select list, and should automatically select the items in
the selection list when creating the dialog. Also added a hashtable and a
function for determining if a particular item is selected.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Wed, 31 Dec 2003 08:05:22 +0000 |
| parents | 96b71ea64386 |
| children | fa6395637e2c |
comparison
equal
deleted
inserted
replaced
| 7963:96b71ea64386 | 7964:a5c70e43ee43 |
|---|---|
| 104 struct | 104 struct |
| 105 { | 105 { |
| 106 GList *items; | 106 GList *items; |
| 107 GHashTable *item_data; | 107 GHashTable *item_data; |
| 108 GList *selected; | 108 GList *selected; |
| 109 GHashTable *selected_table; | |
| 109 | 110 |
| 110 gboolean multiple_selection; | 111 gboolean multiple_selection; |
| 111 | 112 |
| 112 } list; | 113 } list; |
| 113 | 114 |
| 778 */ | 779 */ |
| 779 void gaim_request_field_list_set_selected(GaimRequestField *field, | 780 void gaim_request_field_list_set_selected(GaimRequestField *field, |
| 780 GList *items); | 781 GList *items); |
| 781 | 782 |
| 782 /** | 783 /** |
| 784 * Returns whether or not a particular item is selected in a list field. | |
| 785 * | |
| 786 * @param field The field. | |
| 787 * @param item The item. | |
| 788 * | |
| 789 * @return TRUE if the item is selected. FALSE otherwise. | |
| 790 */ | |
| 791 gboolean gaim_request_field_list_is_selected(const GaimRequestField *field, | |
| 792 const char *item); | |
| 793 | |
| 794 /** | |
| 783 * Returns a list of selected items in a list field. | 795 * Returns a list of selected items in a list field. |
| 784 * | 796 * |
| 785 * To retrieve the data for each item, use | 797 * To retrieve the data for each item, use |
| 786 * gaim_request_field_list_get_data(). | 798 * gaim_request_field_list_get_data(). |
| 787 * | 799 * |
