Mercurial > pidgin.yaz
diff libpurple/protocols/msn/msn.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 | 23fef20a0ef2 |
children | 1439274f0852 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c Sun Jan 13 20:46:20 2008 +0000 +++ b/libpurple/protocols/msn/msn.c Sun Jan 13 22:44:01 2008 +0000 @@ -126,11 +126,8 @@ static GList *list = NULL; if (!list) { - attn = g_new0(PurpleAttentionType, 1); - attn->name = _("Nudge"); - attn->incoming_description = _("%s has nudged you!"); - attn->outgoing_description = _("Nudging %s..."); - list = g_list_append(list, attn); + list = g_list_append(list, purple_attention_type_new("Nudge", _("Nudge"), + _("%s has nudged you!"), _("Nudging %s..."))); } return list;