summaryrefslogtreecommitdiff
path: root/finch/gntblist.c
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/gntblist.c
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/gntblist.c')
-rw-r--r--finch/gntblist.c20
1 files changed, 11 insertions, 9 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",