| 62 |
62 |
| 63 void (*close_request)(GaimRequestType type, void *ui_handle); |
63 void (*close_request)(GaimRequestType type, void *ui_handle); |
| 64 |
64 |
| 65 } GaimRequestUiOps; |
65 } GaimRequestUiOps; |
| 66 |
66 |
| 67 typedef void (*GaimRequestInputCb)(const char *, void *); |
67 typedef void (*GaimRequestInputCb)(void *, const char *); |
| 68 typedef void (*GaimRequestActionCb)(int, void *); |
68 typedef void (*GaimRequestActionCb)(void *, int); |
| 69 |
69 |
| 70 /**************************************************************************/ |
70 /**************************************************************************/ |
| 71 /** @name Request API */ |
71 /** @name Request API */ |
| 72 /**************************************************************************/ |
72 /**************************************************************************/ |
| 73 /*@{*/ |
73 /*@{*/ |
| 211 /** |
211 /** |
| 212 * A wrapper for gaim_request_action() that uses Yes and No buttons. |
212 * A wrapper for gaim_request_action() that uses Yes and No buttons. |
| 213 */ |
213 */ |
| 214 #define gaim_request_yes_no(handle, title, primary, secondary, \ |
214 #define gaim_request_yes_no(handle, title, primary, secondary, \ |
| 215 default_action, user_data, yes_cb, no_cb) \ |
215 default_action, user_data, yes_cb, no_cb) \ |
| 216 gaim_request_action((handle), (title), (primary), (secondary) \ |
216 gaim_request_action((handle), (title), (primary), (secondary), \ |
| 217 (default_action), (user_data), \ |
217 (default_action), (user_data), 2, \ |
| 218 _("Yes"), (yes_cb), _("No"), (no_cb), NULL) |
218 _("Yes"), (yes_cb), _("No"), (no_cb)) |
| 219 |
219 |
| 220 /** |
220 /** |
| 221 * A wrapper for gaim_request_action() that uses OK and Cancel buttons. |
221 * A wrapper for gaim_request_action() that uses OK and Cancel buttons. |
| 222 */ |
222 */ |
| 223 #define gaim_request_ok_cancel(handle, title, primary, secondary, \ |
223 #define gaim_request_ok_cancel(handle, title, primary, secondary, \ |
| 224 default_action, user_data, ok_cb, cancel_cb) \ |
224 default_action, user_data, ok_cb, cancel_cb) \ |
| 225 gaim_request_action((handle), (title), (primary), (secondary) \ |
225 gaim_request_action((handle), (title), (primary), (secondary), \ |
| 226 (default_action), (user_data), \ |
226 (default_action), (user_data), 2, \ |
| 227 _("OK"), (ok_cb), _("Cancel"), (cancel_cb), NULL) |
227 _("OK"), (ok_cb), _("Cancel"), (cancel_cb)) |
| |
228 |
| |
229 /** |
| |
230 * A wrapper for gaim_request_action() that uses Accept and Cancel buttons. |
| |
231 */ |
| |
232 #define gaim_request_accept_cancel(handle, title, primary, secondary, \ |
| |
233 default_action, user_data, accept_cb, \ |
| |
234 cancel_cb) \ |
| |
235 gaim_request_action((handle), (title), (primary), (secondary), \ |
| |
236 (default_action), (user_data), 2, \ |
| |
237 _("Accept"), (accept_cb), _("Cancel"), (cancel_cb)) |
| 228 |
238 |
| 229 /*@}*/ |
239 /*@}*/ |
| 230 |
240 |
| 231 /**************************************************************************/ |
241 /**************************************************************************/ |
| 232 /** @name UI Operations API */ |
242 /** @name UI Operations API */ |