# HG changeset patch # User John Bailey # Date 1246803254 0 # Node ID 1f30c4a47e3dc19d58b36b91b5e1dc89dfd2e79a # Parent 4aa78e6524b1f8624bb373160e5c239179a321ef have a separate hash table function for each prpl. diff -r 4aa78e6524b1 -r 1f30c4a47e3d libpurple/protocols/yahoo/libyahoo.c --- 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, diff -r 4aa78e6524b1 -r 1f30c4a47e3d libpurple/protocols/yahoo/libyahoojp.c --- 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 */ }; diff -r 4aa78e6524b1 -r 1f30c4a47e3d libpurple/protocols/yahoo/libymsg.c --- 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; -} -