summaryrefslogtreecommitdiff
path: root/finch
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2021-10-10 05:01:31 -0500
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2021-10-10 05:01:31 -0500
commit628ba250ce4ee66515c5086a60657f657bfd034d (patch)
tree2b89869596792caecaa2f256ab549d72afaff2fb /finch
parentf936aa343e8354ff521a43c158e1f2f615a3e78a (diff)
downloadpidgin-628ba250ce4ee66515c5086a60657f657bfd034d.tar.gz
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/
Diffstat (limited to 'finch')
-rw-r--r--finch/gntblist.c20
-rw-r--r--finch/gntmedia.c2
-rw-r--r--finch/gntrequest.c2
3 files changed, 13 insertions, 11 deletions
diff --git a/finch/gntblist.c b/finch/gntblist.c
index 9ce5caeb9c..46a12ab9cc 100644
--- a/finch/gntblist.c
+++ b/finch/gntblist.c
@@ -164,26 +164,28 @@ static gboolean default_can_add_node(PurpleBlistNode *node)
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 @@ draw_tooltip(FinchBuddyList *ggblist)
/* 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",
diff --git a/finch/gntmedia.c b/finch/gntmedia.c
index 9ea73f2273..c47aa4f9c8 100644
--- a/finch/gntmedia.c
+++ b/finch/gntmedia.c
@@ -360,7 +360,7 @@ finch_new_media(PurpleMediaManager *manager, PurpleMedia *media,
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);
diff --git a/finch/gntrequest.c b/finch/gntrequest.c
index aac26c7d7a..e2771156fd 100644
--- a/finch/gntrequest.c
+++ b/finch/gntrequest.c
@@ -289,7 +289,7 @@ request_fields_cb(GntWidget *button, PurpleRequestFields *fields)
* 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;