Mercurial > pidgin
comparison libpurple/request.h @ 29814:6d3a90b49dba
propagate from branch 'im.pidgin.pidgin' (head 8587687655d4e11f0965358e8a4378cfa3d1e4e7)
to branch 'im.pidgin.cpw.malu.ft_thumbnails' (head 14eca8a36cf4d5e66226c1d94d6d44b5219b1476)
| author | Elliott Sales de Andrade <qulogic@pidgin.im> |
|---|---|
| date | Sun, 28 Feb 2010 04:07:39 +0000 |
| parents | d0588e403877 a0fb6798d87c |
| children | 905e291986bc |
comparison
equal
deleted
inserted
replaced
| 29813:221cebbc35d8 | 29814:6d3a90b49dba |
|---|---|
| 148 } choice; | 148 } choice; |
| 149 | 149 |
| 150 struct | 150 struct |
| 151 { | 151 { |
| 152 GList *items; | 152 GList *items; |
| 153 GList *icons; | |
| 153 GHashTable *item_data; | 154 GHashTable *item_data; |
| 154 GList *selected; | 155 GList *selected; |
| 155 GHashTable *selected_table; | 156 GHashTable *selected_table; |
| 156 | 157 |
| 157 gboolean multiple_selection; | 158 gboolean multiple_selection; |
| 959 * Adds an item to a list field. | 960 * Adds an item to a list field. |
| 960 * | 961 * |
| 961 * @param field The list field. | 962 * @param field The list field. |
| 962 * @param item The list item. | 963 * @param item The list item. |
| 963 * @param data The associated data. | 964 * @param data The associated data. |
| 965 * | |
| 966 * @deprecated Use purple_request_field_list_add_icon() instead. | |
| 964 */ | 967 */ |
| 965 void purple_request_field_list_add(PurpleRequestField *field, | 968 void purple_request_field_list_add(PurpleRequestField *field, |
| 966 const char *item, void *data); | 969 const char *item, void *data); |
| 967 | 970 |
| 968 /** | 971 /** |
| 972 * Adds an item to a list field. | |
| 973 * | |
| 974 * @param field The list field. | |
| 975 * @param item The list item. | |
| 976 * @param icon_path The path to icon file, or @c NULL for no icon. | |
| 977 * @param data The associated data. | |
| 978 */ | |
| 979 void purple_request_field_list_add_icon(PurpleRequestField *field, | |
| 980 const char *item, const char* icon_path, void* data); | |
| 981 | |
| 982 /** | |
| 969 * Adds a selected item to the list field. | 983 * Adds a selected item to the list field. |
| 970 * | 984 * |
| 971 * @param field The field. | 985 * @param field The field. |
| 972 * @param item The item to add. | 986 * @param item The item to add. |
| 973 */ | 987 */ |
| 1020 * @param field The field. | 1034 * @param field The field. |
| 1021 * | 1035 * |
| 1022 * @constreturn The list of items. | 1036 * @constreturn The list of items. |
| 1023 */ | 1037 */ |
| 1024 GList *purple_request_field_list_get_items(const PurpleRequestField *field); | 1038 GList *purple_request_field_list_get_items(const PurpleRequestField *field); |
| 1039 | |
| 1040 /** | |
| 1041 * Returns a list of icons in a list field. | |
| 1042 * | |
| 1043 * The icons will correspond with the items, in order. | |
| 1044 * | |
| 1045 * @param field The field. | |
| 1046 * | |
| 1047 * @constreturn The list of icons or @c NULL (i.e. the empty GList) if no | |
| 1048 * items have icons. | |
| 1049 */ | |
| 1050 GList *purple_request_field_list_get_icons(const PurpleRequestField *field); | |
| 1025 | 1051 |
| 1026 /*@}*/ | 1052 /*@}*/ |
| 1027 | 1053 |
| 1028 /**************************************************************************/ | 1054 /**************************************************************************/ |
| 1029 /** @name Label Field API */ | 1055 /** @name Label Field API */ |
