Mercurial > pidgin.yaz
comparison libpurple/request.h @ 30959:8648453adb22
propagate from branch 'im.pidgin.pidgin' (head 96b27a20c7250b87761a8bd4f5540bf1fa32b6f4)
to branch 'im.pidgin.cpw.malu.xmpp.google_relay' (head 303f4072d75faa7770a5339dbfea05da7cee30a4)
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Tue, 09 Mar 2010 21:41:41 +0000 |
parents | a0fb6798d87c |
children | 6d3a90b49dba |
comparison
equal
deleted
inserted
replaced
30958:3d08b59ebf59 | 30959:8648453adb22 |
---|---|
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 */ |