pidgin/pidgin

Fix typos in Finch

2021-10-10, Elliott Sales de Andrade
508788523450
Parents 72d6941bfa2e
Children 631e6cba8635
Fix typos in Finch

Ran `codespell -w`, reverted a few false positives, and cleaned up some bits it couldn't decipher.

Testing Done:
Compile only.

Reviewed at https://reviews.imfreedom.org/r/1019/
--- a/finch/gntblist.c Sun Oct 10 05:00:30 2021 -0500
+++ b/finch/gntblist.c Sun Oct 10 05:01:31 2021 -0500
@@ -164,26 +164,28 @@
if (purple_blist_node_get_bool(node, "show_offline"))
return TRUE;
} else if (PURPLE_IS_CONTACT(node)) {
- PurpleBlistNode *nd;
- for (nd = purple_blist_node_get_first_child(node);
- nd; nd = purple_blist_node_get_sibling_next(nd)) {
- if (default_can_add_node(nd))
+ PurpleBlistNode *child;
+ for (child = purple_blist_node_get_first_child(node);
+ child; child = purple_blist_node_get_sibling_next(child)) {
+ if (default_can_add_node(child)) {
return TRUE;
+ }
}
} else if (PURPLE_IS_CHAT(node)) {
PurpleChat *chat = (PurpleChat*)node;
if (purple_account_is_connected(purple_chat_get_account(chat)))
return TRUE; /* Show whenever the account is online */
} else if (PURPLE_IS_GROUP(node)) {
- PurpleBlistNode *nd;
+ PurpleBlistNode *child;
gboolean empty = purple_prefs_get_bool(PREF_ROOT "/emptygroups");
if (empty)
return TRUE; /* If we want to see empty groups, we can show any group */
- for (nd = purple_blist_node_get_first_child(node);
- nd; nd = purple_blist_node_get_sibling_next(nd)) {
- if (default_can_add_node(nd))
+ for (child = purple_blist_node_get_first_child(node);
+ child; child = purple_blist_node_get_sibling_next(child)) {
+ if (default_can_add_node(child)) {
return TRUE;
+ }
}
if (ggblist && ggblist->new_group && g_list_find(ggblist->new_group, node))
@@ -1735,7 +1737,7 @@
/* When an account has signed off, it removes one buddy at a time.
* Drawing the tooltip after removing each buddy is expensive. On
* top of that, if the selected buddy belongs to the disconnected
- * account, then retreiving the tooltip for that causes crash. So
+ * account, then retrieving the tooltip for that causes crash. So
* let's make sure we wait for all the buddies to be removed first.*/
int id = g_timeout_add(0, (GSourceFunc)draw_tooltip_real, ggblist);
g_object_set_data_full(G_OBJECT(ggblist->window), "draw_tooltip_calback",
--- a/finch/gntmedia.c Sun Oct 10 05:00:30 2021 -0500
+++ b/finch/gntmedia.c Sun Oct 10 05:01:31 2021 -0500
@@ -360,7 +360,7 @@
static PurpleCmdRet
call_cmd_cb(PurpleConversation *conv, const char *cmd, char **args,
- char **eror, gpointer data)
+ char **error, gpointer data)
{
PurpleAccount *account = purple_conversation_get_account(conv);
--- a/finch/gntrequest.c Sun Oct 10 05:00:30 2021 -0500
+++ b/finch/gntrequest.c Sun Oct 10 05:01:31 2021 -0500
@@ -289,7 +289,7 @@
* updating the fields at the end like here, it updates the appropriate field
* instantly whenever a change is made. That allows it to make sure the
* 'required' fields are entered before the user can hit OK. It's not the case
- * here, althought it can be done. */
+ * here, although it can be done. */
for (list = purple_request_fields_get_groups(fields); list; list = list->next)
{
PurpleRequestFieldGroup *group = list->data;