Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
22775:0be4c1f0fa55 | 22777:087c3ed328d3 |
---|---|
130 } | 130 } |
131 | 131 |
132 return list; | 132 return list; |
133 } | 133 } |
134 | 134 |
135 const char *msn_get_login_label() { | 135 static GHashTable * |
136 return _("E-mail Address..."); | 136 msn_get_account_text_table() |
137 { | |
138 GHashTable *table; | |
139 | |
140 table = g_hash_table_new(g_str_hash, g_str_equal); | |
141 | |
142 g_hash_table_insert(table, "login_label", (gpointer)_("E-mail Address...")); | |
143 | |
144 return table; | |
137 } | 145 } |
138 | 146 |
139 static PurpleCmdRet | 147 static PurpleCmdRet |
140 msn_cmd_nudge(PurpleConversation *conv, const gchar *cmd, gchar **args, gchar **error, void *data) | 148 msn_cmd_nudge(PurpleConversation *conv, const gchar *cmd, gchar **args, gchar **error, void *data) |
141 { | 149 { |
2307 NULL, /* send_raw */ | 2315 NULL, /* send_raw */ |
2308 NULL, /* roomlist_room_serialize */ | 2316 NULL, /* roomlist_room_serialize */ |
2309 NULL, /* unregister_user */ | 2317 NULL, /* unregister_user */ |
2310 msn_send_attention, /* send_attention */ | 2318 msn_send_attention, /* send_attention */ |
2311 msn_attention_types, /* attention_types */ | 2319 msn_attention_types, /* attention_types */ |
2312 msn_get_login_label /* account_login_label */ | 2320 msn_get_account_text_table /* get_account_text_table */ |
2313 }; | 2321 }; |
2314 | 2322 |
2315 static PurplePluginInfo info = | 2323 static PurplePluginInfo info = |
2316 { | 2324 { |
2317 PURPLE_PLUGIN_MAGIC, | 2325 PURPLE_PLUGIN_MAGIC, |