cpw.rekkanoryo.yahoo.separate_prpls: 164a77c9: have a separate hash table function for ...

rekkanoryo at pidgin.im rekkanoryo at pidgin.im
Sun Jul 5 10:45:36 EDT 2009


-----------------------------------------------------------------
Revision: 164a77c99f77dea070e5b2ca4a66202851f76516
Ancestor: ddaee38cdf5da9bfffab1ad5efa6ec86ff816247
Author: rekkanoryo at pidgin.im
Date: 2009-07-05T14:14:14
Branch: im.pidgin.cpw.rekkanoryo.yahoo.separate_prpls
URL: http://d.pidgin.im/viewmtn/revision/info/164a77c99f77dea070e5b2ca4a66202851f76516

Modified files:
        libpurple/protocols/yahoo/libyahoo.c
        libpurple/protocols/yahoo/libyahoojp.c
        libpurple/protocols/yahoo/libymsg.c

ChangeLog: 

have a separate hash table function for each prpl.

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/libyahoo.c	d7d11632826322866ccbbf2f9d31000fc9ed70ed
+++ libpurple/protocols/yahoo/libyahoo.c	282c6553dce58edc48819c9920c5dac7b6619dbf
@@ -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,
============================================================
--- libpurple/protocols/yahoo/libyahoojp.c	b0a0c2eef5926497f408050d7c1d5cd6bd42d5fc
+++ libpurple/protocols/yahoo/libyahoojp.c	c2ebbd7d8a7e638c29444e2f4f790ac6b08c64d9
@@ -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 @@ static PurplePluginProtocolInfo prpl_inf
 	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 */
 };
============================================================
--- libpurple/protocols/yahoo/libymsg.c	97fd08632db7075fbdf06a5fe27825194ed060c4
+++ libpurple/protocols/yahoo/libymsg.c	01beee9b9683ba12647aceb95bd59ab006cd376e
@@ -5060,12 +5060,3 @@ static gboolean yahoo_uri_handler(const 
 	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;
-}
-


More information about the Commits mailing list