Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/src/request.h Fri May 23 01:45:17 2003 +0000 +++ b/src/request.h Fri May 23 02:42:52 2003 +0000 @@ -64,8 +64,8 @@ } GaimRequestUiOps; -typedef void (*GaimRequestInputCb)(const char *, void *); -typedef void (*GaimRequestActionCb)(int, void *); +typedef void (*GaimRequestInputCb)(void *, const char *); +typedef void (*GaimRequestActionCb)(void *, int); /**************************************************************************/ /** @name Request API */ @@ -213,18 +213,28 @@ */ #define gaim_request_yes_no(handle, title, primary, secondary, \ default_action, user_data, yes_cb, no_cb) \ - gaim_request_action((handle), (title), (primary), (secondary) \ - (default_action), (user_data), \ - _("Yes"), (yes_cb), _("No"), (no_cb), NULL) + gaim_request_action((handle), (title), (primary), (secondary), \ + (default_action), (user_data), 2, \ + _("Yes"), (yes_cb), _("No"), (no_cb)) /** * A wrapper for gaim_request_action() that uses OK and Cancel buttons. */ #define gaim_request_ok_cancel(handle, title, primary, secondary, \ default_action, user_data, ok_cb, cancel_cb) \ - gaim_request_action((handle), (title), (primary), (secondary) \ - (default_action), (user_data), \ - _("OK"), (ok_cb), _("Cancel"), (cancel_cb), NULL) + gaim_request_action((handle), (title), (primary), (secondary), \ + (default_action), (user_data), 2, \ + _("OK"), (ok_cb), _("Cancel"), (cancel_cb)) + +/** + * A wrapper for gaim_request_action() that uses Accept and Cancel buttons. + */ +#define gaim_request_accept_cancel(handle, title, primary, secondary, \ + default_action, user_data, accept_cb, \ + cancel_cb) \ + gaim_request_action((handle), (title), (primary), (secondary), \ + (default_action), (user_data), 2, \ + _("Accept"), (accept_cb), _("Cancel"), (cancel_cb)) /*@}*/