# HG changeset patch # User Sadrul Habib Chowdhury # Date 1220278311 0 # Node ID e339b3429965b484f005043a69b0cf952c303625 # Parent bedb72eb2ef720fc84345a51301a12d14acf423f Show 'ICQ UIN...' and 'Yahoo ID...' in the screenname field We currently show 'Email address...' in the screenname/username fied in the account editor dialog for MSN and MySpaceIM. Perhaps showing similar protocol specific terms for other protocols would help reduce some confusion among new users. diff -r bedb72eb2ef7 -r e339b3429965 libpurple/protocols/oscar/libicq.c --- a/libpurple/protocols/oscar/libicq.c Mon Sep 01 13:31:43 2008 +0000 +++ b/libpurple/protocols/oscar/libicq.c Mon Sep 01 14:11:51 2008 +0000 @@ -27,6 +27,15 @@ #include "oscarcommon.h" +static GHashTable * +icq_get_account_text_table(PurpleAccount *account) +{ + GHashTable *table; + table = g_hash_table_new(g_str_hash, g_str_equal); + g_hash_table_insert(table, "login_label", (gpointer)_("ICQ UIN...")); + return table; +} + static PurplePluginProtocolInfo prpl_info = { OPT_PROTO_MAIL_CHECK | OPT_PROTO_IM_IMAGE, @@ -97,7 +106,7 @@ NULL, /* get_attention_types */ sizeof(PurplePluginProtocolInfo), /* struct_size */ - NULL + icq_get_account_text_table, /* get_account_text_table */ }; static PurplePluginInfo info = diff -r bedb72eb2ef7 -r e339b3429965 libpurple/protocols/yahoo/yahoo.c --- a/libpurple/protocols/yahoo/yahoo.c Mon Sep 01 13:31:43 2008 +0000 +++ b/libpurple/protocols/yahoo/yahoo.c Mon Sep 01 14:11:51 2008 +0000 @@ -4301,6 +4301,15 @@ return FALSE; } +static GHashTable * +yahoo_get_account_text_table(PurpleAccount *account) +{ + GHashTable *table; + table = g_hash_table_new(g_str_hash, g_str_equal); + g_hash_table_insert(table, "login_label", (gpointer)_("Yahoo ID...")); + return table; +} + static PurpleWhiteboardPrplOps yahoo_whiteboard_prpl_ops = { yahoo_doodle_start, @@ -4389,7 +4398,7 @@ yahoo_attention_types, sizeof(PurplePluginProtocolInfo), /* struct_size */ - NULL + yahoo_get_account_text_table, /* get_account_text_table */ }; static PurplePluginInfo info =