diff libpurple/protocols/yahoo/yahoo.c @ 19465:d9d9283680a4

In MSN prpl, use attention API. Can be disabled by undefining MSN_USE_ATTENTION_API. Also update Yahoo prpl to use a common idiom in the attention_types function that MSN also uses.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Mon, 27 Aug 2007 06:58:54 +0000
parents ca45543c11a3
children ebe2d2e71223 ea26d30449fd 315151da0dc6
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c	Mon Aug 27 06:08:14 2007 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Mon Aug 27 06:58:54 2007 +0000
@@ -4106,17 +4106,16 @@
 GList *yahoo_attention_types(PurpleAccount *account)
 {
 	PurpleAttentionType *attn;
-	static GList *list;
-	static gboolean init = FALSE;
-
-	if (!init) {
+	static GList *list = NULL;
+
+	if (!list) {
 		/* Yahoo only supports one attention command: the 'buzz'. */
 		/* This is index number YAHOO_BUZZ. */
 		attn = g_new0(PurpleAttentionType, 1);
-		attn->name = "buzz";
-		attn->incoming_description = "buzzed";
-		attn->outgoing_description = "Buzzing";
-		list = g_list_append(NULL, attn);
+		attn->name = _("buzz");
+		attn->incoming_description = _("buzzed");
+		attn->outgoing_description = _("Buzzing");
+		list = g_list_append(list, attn);
 	} 
 
 	return list;