comparison src/request.h @ 10229:9aa0b6d11bbf

[gaim-migrate @ 11364] This is a heavily warmenhoved patch from Alceste Scalas. Here's what it changes: If the user drags an image file into the buddy list or conversation, it presents three options (when applicable): Set as buddy icon - sets this image to be the buddy icon for this buddy Send image file - Initiates a file transfer to send this image. Insert in message - Inserts in the gtkimhtml for use as an IM image. If the user drags a .desktop web link, it will insert a hyperlink in the conversation. All other types of .desktop files fail with an error dialog. If anyone can think of better ways to handle any of them, let me know. This also happens to implement gaim_request_choice, which had previously been unimplemented. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 22 Nov 2004 02:57:34 +0000
parents b13013595c08
children e8d62dc363c5
comparison
equal deleted inserted replaced
10228:37c411c8cde3 10229:9aa0b6d11bbf
180 void *user_data); 180 void *user_data);
181 void *(*request_choice)(const char *title, const char *primary, 181 void *(*request_choice)(const char *title, const char *primary,
182 const char *secondary, unsigned int default_value, 182 const char *secondary, unsigned int default_value,
183 const char *ok_text, GCallback ok_cb, 183 const char *ok_text, GCallback ok_cb,
184 const char *cancel_text, GCallback cancel_cb, 184 const char *cancel_text, GCallback cancel_cb,
185 void *user_data, size_t choice_count, 185 void *user_data, va_list choices);
186 va_list choices);
187 void *(*request_action)(const char *title, const char *primary, 186 void *(*request_action)(const char *title, const char *primary,
188 const char *secondary, unsigned int default_action, 187 const char *secondary, unsigned int default_action,
189 void *user_data, size_t action_count, 188 void *user_data, size_t action_count,
190 va_list actions); 189 va_list actions);
191 void *(*request_fields)(const char *title, const char *primary, 190 void *(*request_fields)(const char *title, const char *primary,
199 void (*close_request)(GaimRequestType type, void *ui_handle); 198 void (*close_request)(GaimRequestType type, void *ui_handle);
200 } GaimRequestUiOps; 199 } GaimRequestUiOps;
201 200
202 typedef void (*GaimRequestInputCb)(void *, const char *); 201 typedef void (*GaimRequestInputCb)(void *, const char *);
203 typedef void (*GaimRequestActionCb)(void *, int); 202 typedef void (*GaimRequestActionCb)(void *, int);
203 typedef void (*GaimRequestChoiceCb)(void *, int);
204 typedef void (*GaimRequestFieldsCb)(void *, GaimRequestFields *fields); 204 typedef void (*GaimRequestFieldsCb)(void *, GaimRequestFields *fields);
205 typedef void (*GaimRequestFileCb)(void *, const char *filename); 205 typedef void (*GaimRequestFileCb)(void *, const char *filename);
206 206
207 #ifdef __cplusplus 207 #ifdef __cplusplus
208 extern "C" { 208 extern "C" {
1115 void *gaim_request_choice(void *handle, const char *title, 1115 void *gaim_request_choice(void *handle, const char *title,
1116 const char *primary, const char *secondary, 1116 const char *primary, const char *secondary,
1117 unsigned int default_value, 1117 unsigned int default_value,
1118 const char *ok_text, GCallback ok_cb, 1118 const char *ok_text, GCallback ok_cb,
1119 const char *cancel_text, GCallback cancel_cb, 1119 const char *cancel_text, GCallback cancel_cb,
1120 void *user_data, size_t choice_count, ...); 1120 void *user_data, ...);
1121 1121
1122 /** 1122 /**
1123 * Prompts the user for multiple-choice input. 1123 * Prompts the user for multiple-choice input.
1124 * 1124 *
1125 * @param handle The plugin or connection handle. 1125 * @param handle The plugin or connection handle.
1140 void *gaim_request_choice_varg(void *handle, const char *title, 1140 void *gaim_request_choice_varg(void *handle, const char *title,
1141 const char *primary, const char *secondary, 1141 const char *primary, const char *secondary,
1142 unsigned int default_value, 1142 unsigned int default_value,
1143 const char *ok_text, GCallback ok_cb, 1143 const char *ok_text, GCallback ok_cb,
1144 const char *cancel_text, GCallback cancel_cb, 1144 const char *cancel_text, GCallback cancel_cb,
1145 void *user_data, size_t choice_count, 1145 void *user_data, va_list choices);
1146 va_list choices);
1147 1146
1148 /** 1147 /**
1149 * Prompts the user for an action. 1148 * Prompts the user for an action.
1150 * 1149 *
1151 * This is often represented as a dialog with a button for each action. 1150 * This is often represented as a dialog with a button for each action.