diff src/notify.c @ 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 9bcd8cd625ae
children 99f4bbeb27bc
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);