Mercurial > pidgin.yaz
comparison libpurple/protocols/msnp9/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 | 1f3f2d2c9a2b |
comparison
equal
deleted
inserted
replaced
22095:4c28d1e4e284 | 22097:eab7d03edfcb |
---|---|
120 } | 120 } |
121 | 121 |
122 static GList * | 122 static GList * |
123 msn_attention_types(PurpleAccount *account) | 123 msn_attention_types(PurpleAccount *account) |
124 { | 124 { |
125 PurpleAttentionType *attn; | |
126 static GList *list = NULL; | 125 static GList *list = NULL; |
127 | 126 |
128 if (!list) { | 127 if (!list) { |
129 attn = g_new0(PurpleAttentionType, 1); | 128 list = g_list_append(list, purple_attention_type_new("Nudge", _("Nudge"), |
130 attn->name = _("Nudge"); | 129 _("%s has nudged you!"), _("Nudging %s..."))); |
131 attn->incoming_description = _("%s has nudged you!"); | |
132 attn->outgoing_description = _("Nudging %s..."); | |
133 list = g_list_append(list, attn); | |
134 } | 130 } |
135 | 131 |
136 return list; | 132 return list; |
137 } | 133 } |
138 | 134 |