Mercurial > pidgin
diff libpurple/protocols/jabber/jabber.c @ 22097:eab7d03edfcb
This adds accessor and mutator API for the PurpleAttentionType struct.
I also took the liberty of updating all the prpls that use PurpleAttentionType
to use this new API.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Sun, 13 Jan 2008 22:44:01 +0000 |
parents | d63892ade0a6 |
children | 252b96b6a32c |
line wrap: on
line diff
--- 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;