comparison libpurple/request.h @ 29867:185677f47825

propagate from branch 'im.pidgin.pidgin' (head 267f28808ab6eeda6b5d68f6433f2b3fcf230d4f) to branch 'im.pidgin.cpw.rekkanoryo.icqxstatus' (head 7e67fade1189ddc36e8d1a6560c75f19d0df32aa)
author Marcus Lundblad <ml@update.uu.se>
date Thu, 18 Feb 2010 21:38:43 +0000
parents a0fb6798d87c
children 6d3a90b49dba
comparison
equal deleted inserted replaced
29795:bc2760c74a79 29867:185677f47825
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;
951 * Adds an item to a list field. 952 * Adds an item to a list field.
952 * 953 *
953 * @param field The list field. 954 * @param field The list field.
954 * @param item The list item. 955 * @param item The list item.
955 * @param data The associated data. 956 * @param data The associated data.
957 *
958 * @deprecated Use purple_request_field_list_add_icon() instead.
956 */ 959 */
957 void purple_request_field_list_add(PurpleRequestField *field, 960 void purple_request_field_list_add(PurpleRequestField *field,
958 const char *item, void *data); 961 const char *item, void *data);
959 962
960 /** 963 /**
964 * Adds an item to a list field.
965 *
966 * @param field The list field.
967 * @param item The list item.
968 * @param icon_path The path to icon file, or @c NULL for no icon.
969 * @param data The associated data.
970 */
971 void purple_request_field_list_add_icon(PurpleRequestField *field,
972 const char *item, const char* icon_path, void* data);
973
974 /**
961 * Adds a selected item to the list field. 975 * Adds a selected item to the list field.
962 * 976 *
963 * @param field The field. 977 * @param field The field.
964 * @param item The item to add. 978 * @param item The item to add.
965 */ 979 */
1012 * @param field The field. 1026 * @param field The field.
1013 * 1027 *
1014 * @constreturn The list of items. 1028 * @constreturn The list of items.
1015 */ 1029 */
1016 GList *purple_request_field_list_get_items(const PurpleRequestField *field); 1030 GList *purple_request_field_list_get_items(const PurpleRequestField *field);
1031
1032 /**
1033 * Returns a list of icons in a list field.
1034 *
1035 * The icons will correspond with the items, in order.
1036 *
1037 * @param field The field.
1038 *
1039 * @constreturn The list of icons or @c NULL (i.e. the empty GList) if no
1040 * items have icons.
1041 */
1042 GList *purple_request_field_list_get_icons(const PurpleRequestField *field);
1017 1043
1018 /*@}*/ 1044 /*@}*/
1019 1045
1020 /**************************************************************************/ 1046 /**************************************************************************/
1021 /** @name Label Field API */ 1047 /** @name Label Field API */