Mercurial > pidgin.yaz
comparison src/request.h @ 5498:cce2d7868c78
[gaim-migrate @ 5894]
Bye bye do_ask_dialog()! Mwahahahahhaha!
And wit -> with. What wit with the witty with wit comment, wit you jutht
thaw.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 23 May 2003 02:42:52 +0000 |
parents | b7c0be69c749 |
children | 11001789cb22 |
comparison
equal
deleted
inserted
replaced
5497:3c7748b24410 | 5498:cce2d7868c78 |
---|---|
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 */ |