changeset 23970: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 bedb72eb2ef7
children db4400f75dd8
files libpurple/protocols/oscar/libicq.c libpurple/protocols/yahoo/yahoo.c
diffstat 2 files changed, 20 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 =
--- 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 =