Mercurial > pidgin
comparison libpurple/protocols/msn/msn.c @ 23110:bb41bdce8981
Patch from Jaywalker to let prpls add some helpful text for some account
fields. This includes the update from rekkanoryo that was reverted
earlier. References #2295.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 05 May 2008 06:55:00 +0000 |
parents | 718a9c287839 |
children | 8c3444f04709 |
comparison
equal
deleted
inserted
replaced
23109:718a9c287839 | 23110:bb41bdce8981 |
---|---|
128 list = g_list_append(list, purple_attention_type_new("Nudge", _("Nudge"), | 128 list = g_list_append(list, purple_attention_type_new("Nudge", _("Nudge"), |
129 _("%s has nudged you!"), _("Nudging %s..."))); | 129 _("%s has nudged you!"), _("Nudging %s..."))); |
130 } | 130 } |
131 | 131 |
132 return list; | 132 return list; |
133 } | |
134 | |
135 static GHashTable * | |
136 msn_get_account_text_table(PurpleAccount *unused) | |
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; | |
133 } | 145 } |
134 | 146 |
135 static PurpleCmdRet | 147 static PurpleCmdRet |
136 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) |
137 { | 149 { |
2305 NULL, /* unregister_user */ | 2317 NULL, /* unregister_user */ |
2306 msn_send_attention, /* send_attention */ | 2318 msn_send_attention, /* send_attention */ |
2307 msn_attention_types, /* attention_types */ | 2319 msn_attention_types, /* attention_types */ |
2308 | 2320 |
2309 sizeof(PurplePluginProtocolInfo), /* struct_size */ | 2321 sizeof(PurplePluginProtocolInfo), /* struct_size */ |
2322 msn_get_account_text_table, /* get_account_text_table */ | |
2310 }; | 2323 }; |
2311 | 2324 |
2312 static PurplePluginInfo info = | 2325 static PurplePluginInfo info = |
2313 { | 2326 { |
2314 PURPLE_PLUGIN_MAGIC, | 2327 PURPLE_PLUGIN_MAGIC, |