Mercurial > pidgin.yaz
changeset 5522:a3e6a5ef49b5
[gaim-migrate @ 5922]
Ah, I knew I forgot to commit something.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 26 May 2003 01:48:31 +0000 |
parents | 76ec14ba51d7 |
children | fe76565d93c4 |
files | src/notify.c src/notify.h |
diffstat | 2 files changed, 21 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/notify.c Mon May 26 01:46:58 2003 +0000 +++ b/src/notify.c Mon May 26 01:48:31 2003 +0000 @@ -88,14 +88,24 @@ } void * -gaim_notify_emails(void *handle, size_t count, const char **subjects, - const char **froms, const char **tos, const char **urls, +gaim_notify_emails(void *handle, size_t count, gboolean detailed, + const char **subjects, const char **froms, + const char **tos, const char **urls, GCallback cb, void *user_data) { GaimNotifyUiOps *ops; g_return_val_if_fail(count != 0, NULL); + if (count == 1) { + return gaim_notify_email(handle, + (subjects == NULL ? NULL : *subjects), + (froms == NULL ? NULL : *froms), + (tos == NULL ? NULL : *tos), + (urls == NULL ? NULL : *urls), + cb, user_data); + } + ops = gaim_get_notify_ui_ops(); if (ops != NULL && ops->notify_emails != NULL) { @@ -104,8 +114,8 @@ info = g_new0(GaimNotifyInfo, 1); info->type = GAIM_NOTIFY_EMAILS; info->handle = handle; - info->ui_handle = ops->notify_emails(count, subjects, froms, tos, - urls, cb, user_data); + info->ui_handle = ops->notify_emails(count, detailed, subjects, + froms, tos, urls, cb, user_data); handles = g_list_append(handles, info);
--- a/src/notify.h Mon May 26 01:46:58 2003 +0000 +++ b/src/notify.h Mon May 26 01:48:31 2003 +0000 @@ -60,10 +60,10 @@ void *(*notify_email)(const char *subject, const char *from, const char *to, const char *url, GCallback cb, void *user_data); - void *(*notify_emails)(size_t count, const char **subjects, - const char **froms, const char **tos, - const char **urls, GCallback cb, - void *user_data); + void *(*notify_emails)(size_t count, gboolean detailed, + const char **subjects, const char **froms, + const char **tos, const char **urls, + GCallback cb, void *user_data); void (*close_notify)(GaimNotifyType type, void *ui_handle); @@ -117,6 +117,8 @@ * * @param handle The plugin or connection handle. * @param count The number of e-mails. + * @param detailed @c TRUE if there is information for each e-mail in the + * arrays. * @param subjects The array of subjects. * @param froms The array of from addresses. * @param tos The array of destination addresses. @@ -127,7 +129,7 @@ * * @return A UI-specific handle. */ -void *gaim_notify_emails(void *handle, size_t count, +void *gaim_notify_emails(void *handle, size_t count, gboolean detailed, const char **subjects, const char **froms, const char **tos, const char **urls, GCallback cb, void *user_data);