Mercurial > pidgin
diff libpurple/protocols/msn/msn.c @ 22777:087c3ed328d3
This modifies Jaywalker's patch to use a GHashTable, per Stu's suggestion in
the XMPP conference. After some thought and discussion, I decided to have the
prpls create the hash table on each call. This allows some dynamic key
creation in case we would need it in the future.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Wed, 30 Apr 2008 05:37:19 +0000 |
parents | 0be4c1f0fa55 |
children | 1cd829a1d27e |
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c Wed Apr 30 03:24:35 2008 +0000 +++ b/libpurple/protocols/msn/msn.c Wed Apr 30 05:37:19 2008 +0000 @@ -132,8 +132,16 @@ return list; } -const char *msn_get_login_label() { - return _("E-mail Address..."); +static GHashTable * +msn_get_account_text_table() +{ + 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 @@ -2309,7 +2317,7 @@ NULL, /* unregister_user */ msn_send_attention, /* send_attention */ msn_attention_types, /* attention_types */ - msn_get_login_label /* account_login_label */ + msn_get_account_text_table /* get_account_text_table */ }; static PurplePluginInfo info =