diff libpurple/protocols/yahoo/yahoo.c @ 24040:e339b3429965

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.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 01 Sep 2008 14:11:51 +0000
parents 18a1f0fe5f40
children b5210bb72273 bb99ee66120e
line wrap: on
line diff
--- 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 =