| 1250 * @param primary The main point of the message. |
1250 * @param primary The main point of the message. |
| 1251 * @param secondary The secondary information. |
1251 * @param secondary The secondary information. |
| 1252 * @param default_action The default value. |
1252 * @param default_action The default value. |
| 1253 * @param user_data The data to pass to the callback. |
1253 * @param user_data The data to pass to the callback. |
| 1254 * @param action_count The number of actions. |
1254 * @param action_count The number of actions. |
| 1255 * @param ... A list of actions. |
1255 * @param ... A list of actions. These are pairs of |
| |
1256 * arguments. The first of each pair is the |
| |
1257 * string that appears on the button. It should |
| |
1258 * have an underscore before the letter you want |
| |
1259 * to use as the accelerator key for the button. |
| |
1260 * The second of each pair is the callback |
| |
1261 * function to use when the button is clicked. |
| 1256 * |
1262 * |
| 1257 * @return A UI-specific handle. |
1263 * @return A UI-specific handle. |
| 1258 */ |
1264 */ |
| 1259 void *gaim_request_action(void *handle, const char *title, |
1265 void *gaim_request_action(void *handle, const char *title, |
| 1260 const char *primary, const char *secondary, |
1266 const char *primary, const char *secondary, |
| 1330 */ |
1336 */ |
| 1331 #define gaim_request_yes_no(handle, title, primary, secondary, \ |
1337 #define gaim_request_yes_no(handle, title, primary, secondary, \ |
| 1332 default_action, user_data, yes_cb, no_cb) \ |
1338 default_action, user_data, yes_cb, no_cb) \ |
| 1333 gaim_request_action((handle), (title), (primary), (secondary), \ |
1339 gaim_request_action((handle), (title), (primary), (secondary), \ |
| 1334 (default_action), (user_data), 2, \ |
1340 (default_action), (user_data), 2, \ |
| 1335 _("Yes"), (yes_cb), _("No"), (no_cb)) |
1341 _("_Yes"), (yes_cb), _("_No"), (no_cb)) |
| 1336 |
1342 |
| 1337 /** |
1343 /** |
| 1338 * A wrapper for gaim_request_action() that uses @c OK and @c Cancel buttons. |
1344 * A wrapper for gaim_request_action() that uses @c OK and @c Cancel buttons. |
| 1339 */ |
1345 */ |
| 1340 #define gaim_request_ok_cancel(handle, title, primary, secondary, \ |
1346 #define gaim_request_ok_cancel(handle, title, primary, secondary, \ |
| 1341 default_action, user_data, ok_cb, cancel_cb) \ |
1347 default_action, user_data, ok_cb, cancel_cb) \ |
| 1342 gaim_request_action((handle), (title), (primary), (secondary), \ |
1348 gaim_request_action((handle), (title), (primary), (secondary), \ |
| 1343 (default_action), (user_data), 2, \ |
1349 (default_action), (user_data), 2, \ |
| 1344 _("OK"), (ok_cb), _("Cancel"), (cancel_cb)) |
1350 _("_OK"), (ok_cb), _("_Cancel"), (cancel_cb)) |
| 1345 |
1351 |
| 1346 /** |
1352 /** |
| 1347 * A wrapper for gaim_request_action() that uses Accept and Cancel buttons. |
1353 * A wrapper for gaim_request_action() that uses Accept and Cancel buttons. |
| 1348 */ |
1354 */ |
| 1349 #define gaim_request_accept_cancel(handle, title, primary, secondary, \ |
1355 #define gaim_request_accept_cancel(handle, title, primary, secondary, \ |
| 1350 default_action, user_data, accept_cb, \ |
1356 default_action, user_data, accept_cb, \ |
| 1351 cancel_cb) \ |
1357 cancel_cb) \ |
| 1352 gaim_request_action((handle), (title), (primary), (secondary), \ |
1358 gaim_request_action((handle), (title), (primary), (secondary), \ |
| 1353 (default_action), (user_data), 2, \ |
1359 (default_action), (user_data), 2, \ |
| 1354 _("_Accept"), (accept_cb), _("Cancel"), (cancel_cb)) |
1360 _("_Accept"), (accept_cb), _("_Cancel"), (cancel_cb)) |
| 1355 |
1361 |
| 1356 /** |
1362 /** |
| 1357 * Displays a file selector request dialog. Returns the selected filename to |
1363 * Displays a file selector request dialog. Returns the selected filename to |
| 1358 * the callback. Can be used for either opening a file or saving a file. |
1364 * the callback. Can be used for either opening a file or saving a file. |
| 1359 * |
1365 * |