comparison 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
comparison
equal deleted inserted replaced
24176:c1e58cfd1107 29638:22b8a92fb5ee
310 c = purple_conversation_new(PURPLE_CONV_TYPE_IM, account, jm->from); 310 c = purple_conversation_new(PURPLE_CONV_TYPE_IM, account, jm->from);
311 311
312 str = g_strdup_printf(_("%s has buzzed you!"), username); 312 str = g_strdup_printf(_("%s has buzzed you!"), username);
313 313
314 purple_conversation_write(c, NULL, str, PURPLE_MESSAGE_SYSTEM|PURPLE_MESSAGE_NOTIFY, time(NULL)); 314 purple_conversation_write(c, NULL, str, PURPLE_MESSAGE_SYSTEM|PURPLE_MESSAGE_NOTIFY, time(NULL));
315 purple_conversation_attention(c, username, 0, PURPLE_MESSAGE_RECV, time(NULL));
315 g_free(username); 316 g_free(username);
316 g_free(str); 317 g_free(str);
317 } 318 }
318 319
319 /* used internally by the functions below */ 320 /* used internally by the functions below */