Mercurial > pidgin.yaz
diff libpurple/notify.c @ 20480:7d3e53e3f623
propagate from branch 'im.pidgin.pidgin' (head 5775dc23bad7ecf62c8f951574460d2f075f9e72)
to branch 'im.pidgin.cpw.khc.msnp14' (head 225df0e615bb2eeed8c7af88c770ade3d78626fb)
author | Carlos Silva <typ0@pidgin.im> |
---|---|
date | Wed, 08 Aug 2007 23:04:44 +0000 |
parents | cb91bb07eeff |
children | 44b4e8bd759b 536ee8e459ef |
line wrap: on
line diff
--- a/libpurple/notify.c Wed Aug 08 23:01:44 2007 +0000 +++ b/libpurple/notify.c Wed Aug 08 23:04:44 2007 +0000 @@ -112,6 +112,10 @@ info = g_new0(PurpleNotifyInfo, 1); info->type = PURPLE_NOTIFY_EMAIL; info->handle = handle; + + purple_signal_emit(purple_notify_get_handle(), "displaying-email-notification", + subject, from, to, url); + info->ui_handle = ops->notify_email(handle, subject, from, to, url); info->cb = cb; info->cb_user_data = user_data; @@ -164,6 +168,10 @@ info = g_new0(PurpleNotifyInfo, 1); info->type = PURPLE_NOTIFY_EMAILS; info->handle = handle; + + purple_signal_emit(purple_notify_get_handle(), "displaying-emails-notification", + subjects, froms, tos, urls, count); + info->ui_handle = ops->notify_emails(handle, count, detailed, subjects, froms, tos, urls); info->cb = cb; @@ -799,6 +807,21 @@ { gpointer handle = purple_notify_get_handle(); + purple_signal_register(handle, "displaying-email-notification", + purple_marshal_VOID__POINTER_POINTER_POINTER_POINTER, NULL, 4, + purple_value_new(PURPLE_TYPE_STRING), + purple_value_new(PURPLE_TYPE_STRING), + purple_value_new(PURPLE_TYPE_STRING), + purple_value_new(PURPLE_TYPE_STRING)); + + purple_signal_register(handle, "displaying-emails-notification", + purple_marshal_VOID__POINTER_POINTER_POINTER_POINTER_UINT, NULL, 5, + purple_value_new(PURPLE_TYPE_POINTER), + purple_value_new(PURPLE_TYPE_POINTER), + purple_value_new(PURPLE_TYPE_POINTER), + purple_value_new(PURPLE_TYPE_POINTER), + purple_value_new(PURPLE_TYPE_UINT)); + purple_signal_register(handle, "displaying-userinfo", purple_marshal_VOID__POINTER_POINTER_POINTER, NULL, 3, purple_value_new(PURPLE_TYPE_SUBTYPE,