Mercurial > pidgin.yaz
changeset 27397:1f30c4a47e3d
have a separate hash table function for each prpl.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Sun, 05 Jul 2009 14:14:14 +0000 |
parents | 4aa78e6524b1 |
children | 7f008ce8604b |
files | libpurple/protocols/yahoo/libyahoo.c libpurple/protocols/yahoo/libyahoojp.c libpurple/protocols/yahoo/libymsg.c |
diffstat | 3 files changed, 19 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/libyahoo.c Sun Jul 05 05:35:05 2009 +0000 +++ b/libpurple/protocols/yahoo/libyahoo.c Sun Jul 05 14:14:14 2009 +0000 @@ -21,6 +21,15 @@ * */ +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,
--- a/libpurple/protocols/yahoo/libyahoojp.c Sun Jul 05 05:35:05 2009 +0000 +++ b/libpurple/protocols/yahoo/libyahoojp.c Sun Jul 05 14:14:14 2009 +0000 @@ -21,6 +21,15 @@ * */ +static GHashTable * +yahoojp_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 JAPAN ID...")); + return table; +} + static PurpleWhiteboardPrplOps yahoo_whiteboard_prpl_ops = { yahoo_doodle_start, @@ -109,7 +118,7 @@ yahoo_attention_types, sizeof(PurplePluginProtocolInfo), /* struct_size */ - yahoo_get_account_text_table, /* get_account_text_table */ + yahoojp_get_account_text_table, /* get_account_text_table */ NULL, /* initiate_media */ NULL /* can_do_media */ };
--- a/libpurple/protocols/yahoo/libymsg.c Sun Jul 05 05:35:05 2009 +0000 +++ b/libpurple/protocols/yahoo/libymsg.c Sun Jul 05 14:14:14 2009 +0000 @@ -5060,12 +5060,3 @@ return FALSE; } -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; -} -