Mercurial > pidgin.yaz
comparison 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 7f8cf35fc99b |
comparison
equal
deleted
inserted
replaced
19464:ca45543c11a3 | 19465:d9d9283680a4 |
---|---|
4104 } | 4104 } |
4105 | 4105 |
4106 GList *yahoo_attention_types(PurpleAccount *account) | 4106 GList *yahoo_attention_types(PurpleAccount *account) |
4107 { | 4107 { |
4108 PurpleAttentionType *attn; | 4108 PurpleAttentionType *attn; |
4109 static GList *list; | 4109 static GList *list = NULL; |
4110 static gboolean init = FALSE; | 4110 |
4111 | 4111 if (!list) { |
4112 if (!init) { | |
4113 /* Yahoo only supports one attention command: the 'buzz'. */ | 4112 /* Yahoo only supports one attention command: the 'buzz'. */ |
4114 /* This is index number YAHOO_BUZZ. */ | 4113 /* This is index number YAHOO_BUZZ. */ |
4115 attn = g_new0(PurpleAttentionType, 1); | 4114 attn = g_new0(PurpleAttentionType, 1); |
4116 attn->name = "buzz"; | 4115 attn->name = _("buzz"); |
4117 attn->incoming_description = "buzzed"; | 4116 attn->incoming_description = _("buzzed"); |
4118 attn->outgoing_description = "Buzzing"; | 4117 attn->outgoing_description = _("Buzzing"); |
4119 list = g_list_append(NULL, attn); | 4118 list = g_list_append(list, attn); |
4120 } | 4119 } |
4121 | 4120 |
4122 return list; | 4121 return list; |
4123 } | 4122 } |
4124 | 4123 |