Mercurial > pidgin.yaz
diff src/notify.c @ 6381:e006685f75aa
[gaim-migrate @ 6886]
Added gaim_notify_formatted().
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 05 Aug 2003 20:19:57 +0000 |
parents | ee0044f3e377 |
children | fb64cc87bc96 |
line wrap: on
line diff
--- a/src/notify.c Tue Aug 05 19:20:26 2003 +0000 +++ b/src/notify.c Tue Aug 05 20:19:57 2003 +0000 @@ -125,6 +125,34 @@ return NULL; } +void * +gaim_notify_formatted(void *handle, const char *title, const char *primary, + const char *secondary, const char *text, + GCallback cb, void *user_data) +{ + GaimNotifyUiOps *ops; + + g_return_val_if_fail(primary != NULL, NULL); + + ops = gaim_get_notify_ui_ops(); + + if (ops != NULL && ops->notify_formatted != NULL) { + GaimNotifyInfo *info; + + info = g_new0(GaimNotifyInfo, 1); + info->type = GAIM_NOTIFY_FORMATTED; + info->handle = handle; + info->ui_handle = ops->notify_formatted(title, primary, secondary, + text, cb, user_data); + + handles = g_list_append(handles, info); + + return info->ui_handle; + } + + return NULL; +} + void gaim_notify_close(GaimNotifyType type, void *ui_handle) {