# HG changeset patch # User Christian Hammond # Date 1053913711 0 # Node ID a3e6a5ef49b556b9bc55bee9220b969559607635 # Parent 76ec14ba51d759ac64f8e5f21064251603f820f7 [gaim-migrate @ 5922] Ah, I knew I forgot to commit something. committer: Tailor Script diff -r 76ec14ba51d7 -r a3e6a5ef49b5 src/notify.c --- 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); diff -r 76ec14ba51d7 -r a3e6a5ef49b5 src/notify.h --- 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);