diff libpurple/protocols/oscar/libicq.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 bb41bdce8981
children bb99ee66120e 1fb503adb2ae
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 =