pidgin: ddede263: Show 'ICQ UIN...' and 'Yahoo ID...' in t...

sadrul at pidgin.im sadrul at pidgin.im
Mon Sep 1 10:05:48 EDT 2008


-----------------------------------------------------------------
Revision: ddede263ddbdfa47f0c87c68babbc5df22a3e313
Ancestor: f5ca7968e3f6be8f81d068232d389e0b1dab784b
Author: sadrul at pidgin.im
Date: 2008-09-01T14:11:51
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/ddede263ddbdfa47f0c87c68babbc5df22a3e313

Modified files:
        libpurple/protocols/oscar/libicq.c
        libpurple/protocols/yahoo/yahoo.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/libicq.c	59744e847a4acd44d59f26ce7c5c1c38fae0fa62
+++ libpurple/protocols/oscar/libicq.c	31208a848362336f72cea2c4978583af35d2505b
@@ -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 @@ static PurplePluginProtocolInfo prpl_inf
 	NULL,					/* get_attention_types */
 
 	sizeof(PurplePluginProtocolInfo),       /* struct_size */
-	NULL
+	icq_get_account_text_table, /* get_account_text_table */
 };
 
 static PurplePluginInfo info =
============================================================
--- libpurple/protocols/yahoo/yahoo.c	8e54d3b6ca217196b7aea88b3db3db73f9ee44bc
+++ libpurple/protocols/yahoo/yahoo.c	c1b70c8ae49b010d0527cacccf74838fb9c7dfde
@@ -4301,6 +4301,15 @@ static gboolean yahoo_uri_handler(const 
 	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 @@ static PurplePluginProtocolInfo prpl_inf
 	yahoo_attention_types,
 
 	sizeof(PurplePluginProtocolInfo),       /* struct_size */
-	NULL
+	yahoo_get_account_text_table,    /* get_account_text_table */
 };
 
 static PurplePluginInfo info =


More information about the Commits mailing list