diff libpurple/protocols/msn/msn.c @ 23110:bb41bdce8981

Patch from Jaywalker to let prpls add some helpful text for some account fields. This includes the update from rekkanoryo that was reverted earlier. References #2295.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 05 May 2008 06:55:00 +0000
parents 718a9c287839
children 8c3444f04709
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c	Mon May 05 06:19:46 2008 +0000
+++ b/libpurple/protocols/msn/msn.c	Mon May 05 06:55:00 2008 +0000
@@ -132,6 +132,18 @@
 	return list;
 }
 
+static GHashTable *
+msn_get_account_text_table(PurpleAccount *unused)
+{
+	GHashTable *table;
+
+	table = g_hash_table_new(g_str_hash, g_str_equal);
+
+	g_hash_table_insert(table, "login_label", (gpointer)_("E-mail Address..."));
+
+	return table;
+}
+
 static PurpleCmdRet
 msn_cmd_nudge(PurpleConversation *conv, const gchar *cmd, gchar **args, gchar **error, void *data)
 {
@@ -2307,6 +2319,7 @@
 	msn_attention_types,                    /* attention_types */
 
 	sizeof(PurplePluginProtocolInfo),       /* struct_size */
+	msn_get_account_text_table,             /* get_account_text_table */
 };
 
 static PurplePluginInfo info =