Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
5521:76ec14ba51d7 | 5522:a3e6a5ef49b5 |
---|---|
86 | 86 |
87 return NULL; | 87 return NULL; |
88 } | 88 } |
89 | 89 |
90 void * | 90 void * |
91 gaim_notify_emails(void *handle, size_t count, const char **subjects, | 91 gaim_notify_emails(void *handle, size_t count, gboolean detailed, |
92 const char **froms, const char **tos, const char **urls, | 92 const char **subjects, const char **froms, |
93 const char **tos, const char **urls, | |
93 GCallback cb, void *user_data) | 94 GCallback cb, void *user_data) |
94 { | 95 { |
95 GaimNotifyUiOps *ops; | 96 GaimNotifyUiOps *ops; |
96 | 97 |
97 g_return_val_if_fail(count != 0, NULL); | 98 g_return_val_if_fail(count != 0, NULL); |
99 | |
100 if (count == 1) { | |
101 return gaim_notify_email(handle, | |
102 (subjects == NULL ? NULL : *subjects), | |
103 (froms == NULL ? NULL : *froms), | |
104 (tos == NULL ? NULL : *tos), | |
105 (urls == NULL ? NULL : *urls), | |
106 cb, user_data); | |
107 } | |
98 | 108 |
99 ops = gaim_get_notify_ui_ops(); | 109 ops = gaim_get_notify_ui_ops(); |
100 | 110 |
101 if (ops != NULL && ops->notify_emails != NULL) { | 111 if (ops != NULL && ops->notify_emails != NULL) { |
102 GaimNotifyInfo *info; | 112 GaimNotifyInfo *info; |
103 | 113 |
104 info = g_new0(GaimNotifyInfo, 1); | 114 info = g_new0(GaimNotifyInfo, 1); |
105 info->type = GAIM_NOTIFY_EMAILS; | 115 info->type = GAIM_NOTIFY_EMAILS; |
106 info->handle = handle; | 116 info->handle = handle; |
107 info->ui_handle = ops->notify_emails(count, subjects, froms, tos, | 117 info->ui_handle = ops->notify_emails(count, detailed, subjects, |
108 urls, cb, user_data); | 118 froms, tos, urls, cb, user_data); |
109 | 119 |
110 handles = g_list_append(handles, info); | 120 handles = g_list_append(handles, info); |
111 | 121 |
112 return info->ui_handle; | 122 return info->ui_handle; |
113 } | 123 } |