libpurple/protocols/jabber/jabber.c

changeset 22225
6cd802a8c5ad
parent 22155
7c2034388bdb
child 22277
7c386db62c81
--- a/libpurple/protocols/jabber/jabber.c	Sun Jan 13 20:46:20 2008 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Sun Jan 13 22:44:01 2008 +0000
@@ -2301,14 +2301,10 @@
 GList *jabber_attention_types(PurpleAccount *account)
 {
 	static GList *types = NULL;
-	PurpleAttentionType *attn;
 
 	if (!types) {
-		attn = g_new0(PurpleAttentionType, 1);
-		attn->name = _("Buzz");
-		attn->incoming_description = _("%s has buzzed you!");
-		attn->outgoing_description = _("Buzzing %s...");
-		types = g_list_append(types, attn);
+		types = g_list_append(types, purple_attention_type_new("Buzz", _("Buzz"),
+				_("%s has buzzed you!"), _("Buzzing %s...")));
 	}
 
 	return types;

mercurial