diff libpurple/protocols/jabber/message.c @ 29638:22b8a92fb5ee

Adds attention UI to Pidgin (can send attentions using a menu item) API to "fire" an attention on a conversation, triggering signals. Currently gtksound is set up to use the alert sound for received and sent attentions. Refs #2788
author Marcus Lundblad <ml@update.uu.se>
date Mon, 20 Oct 2008 18:44:06 +0000
parents 14915e96311e
children 249fee48c3ed
line wrap: on
line diff
--- a/libpurple/protocols/jabber/message.c	Thu Oct 16 22:20:52 2008 +0000
+++ b/libpurple/protocols/jabber/message.c	Mon Oct 20 18:44:06 2008 +0000
@@ -312,6 +312,7 @@
 	str = g_strdup_printf(_("%s has buzzed you!"), username);
 	
 	purple_conversation_write(c, NULL, str, PURPLE_MESSAGE_SYSTEM|PURPLE_MESSAGE_NOTIFY, time(NULL));
+	purple_conversation_attention(c, username, 0, PURPLE_MESSAGE_RECV, time(NULL));
 	g_free(username);
 	g_free(str);
 }