diff options
author | Ankit Vani <a@nevitus.org> | 2013-07-13 21:17:31 +0530 |
---|---|---|
committer | Ankit Vani <a@nevitus.org> | 2013-07-13 21:17:31 +0530 |
commit | f95574842d6d1f6e6201074055aa21626018ab00 (patch) | |
tree | 37c96cbeba6cde35a7dc569770233fea642aa8e8 /finch | |
parent | 53ebba4bb4e6de69a48d9d0c7ba7e4cad5bed1fc (diff) | |
download | pidgin-f95574842d6d1f6e6201074055aa21626018ab00.tar.gz |
Renamed PURPLE_IS_BUDDY_ONLINE back to PURPLE_BUDDY_IS_ONLINE
Diffstat (limited to 'finch')
-rw-r--r-- | finch/gntblist.c | 10 | ||||
-rw-r--r-- | finch/gntpounce.c | 2 | ||||
-rw-r--r-- | finch/plugins/grouping.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/finch/gntblist.c b/finch/gntblist.c index fc103c96ea..f297f9ef8c 100644 --- a/finch/gntblist.c +++ b/finch/gntblist.c @@ -172,7 +172,7 @@ static gboolean default_can_add_node(PurpleBListNode *node) FinchBListNode *fnode = purple_blist_node_get_ui_data(node); if (!purple_buddy_get_contact(buddy)) return FALSE; /* When a new buddy is added and show-offline is set */ - if (PURPLE_IS_BUDDY_ONLINE(buddy)) + if (PURPLE_BUDDY_IS_ONLINE(buddy)) return TRUE; /* The buddy is online */ if (!purple_account_is_connected(purple_buddy_get_account(buddy))) return FALSE; /* The account is disconnected. Do not show */ @@ -240,7 +240,7 @@ static gboolean default_create_tooltip(gpointer selected_row, GString **body, ch if (PURPLE_IS_CONTACT(node)) { PurpleBuddy *pr = purple_contact_get_priority_buddy((PurpleContact*)node); - gboolean offline = !PURPLE_IS_BUDDY_ONLINE(pr); + gboolean offline = !PURPLE_BUDDY_IS_ONLINE(pr); gboolean showoffline = purple_prefs_get_bool(PREF_ROOT "/showoffline"); const char *name = purple_buddy_get_name(pr); @@ -257,7 +257,7 @@ static gboolean default_create_tooltip(gpointer selected_row, GString **body, ch continue; if (!purple_account_is_connected(purple_buddy_get_account(buddy))) continue; - if (!showoffline && !PURPLE_IS_BUDDY_ONLINE(buddy)) + if (!showoffline && !PURPLE_BUDDY_IS_ONLINE(buddy)) continue; str = g_string_append(str, "\n----------\n"); tooltip_for_buddy(buddy, str, FALSE); @@ -266,7 +266,7 @@ static gboolean default_create_tooltip(gpointer selected_row, GString **body, ch PurpleBuddy *buddy = (PurpleBuddy *)node; tooltip_for_buddy(buddy, str, TRUE); title = g_strdup(purple_buddy_get_name(buddy)); - if (!PURPLE_IS_BUDDY_ONLINE((PurpleBuddy*)node)) + if (!PURPLE_BUDDY_IS_ONLINE((PurpleBuddy*)node)) lastseen = purple_blist_node_get_int(node, "last_seen"); } else if (PURPLE_IS_GROUP(node)) { PurpleGroup *group = (PurpleGroup *)node; @@ -430,7 +430,7 @@ is_contact_online(PurpleContact *contact) for (node = purple_blist_node_get_first_child(((PurpleBListNode*)contact)); node; node = purple_blist_node_get_sibling_next(node)) { FinchBListNode *fnode = purple_blist_node_get_ui_data(node); - if (PURPLE_IS_BUDDY_ONLINE((PurpleBuddy*)node) || + if (PURPLE_BUDDY_IS_ONLINE((PurpleBuddy*)node) || (fnode && fnode->signed_timer)) return TRUE; } diff --git a/finch/gntpounce.c b/finch/gntpounce.c index c968e24e5b..efaa8dc3bb 100644 --- a/finch/gntpounce.c +++ b/finch/gntpounce.c @@ -565,7 +565,7 @@ finch_pounce_editor_show(PurpleAccount *account, const char *name, gnt_check_box_set_checked( GNT_CHECK_BOX(dialog->signon), TRUE); } else { - if (!PURPLE_IS_BUDDY_ONLINE(buddy)) { + if (!PURPLE_BUDDY_IS_ONLINE(buddy)) { gnt_check_box_set_checked( GNT_CHECK_BOX(dialog->signon), TRUE); } else { diff --git a/finch/plugins/grouping.c b/finch/plugins/grouping.c index a96419a87b..81e2b46f0e 100644 --- a/finch/plugins/grouping.c +++ b/finch/plugins/grouping.c @@ -98,7 +98,7 @@ static gboolean on_offline_can_add_node(PurpleBListNode *node) return FALSE; } else if (PURPLE_IS_BUDDY(node)) { PurpleBuddy *buddy = PURPLE_BUDDY(node); - if (PURPLE_IS_BUDDY_ONLINE(buddy)) + if (PURPLE_BUDDY_IS_ONLINE(buddy)) return TRUE; if (purple_prefs_get_bool("/finch/blist/showoffline") && purple_account_is_connected(purple_buddy_get_account(buddy))) @@ -118,7 +118,7 @@ static gpointer on_offline_find_parent(PurpleBListNode *node) if (PURPLE_IS_CONTACT(node)) { node = PURPLE_BLIST_NODE(purple_contact_get_priority_buddy(PURPLE_CONTACT(node))); - ret = PURPLE_IS_BUDDY_ONLINE(PURPLE_BUDDY(node)) ? online : offline; + ret = PURPLE_BUDDY_IS_ONLINE(PURPLE_BUDDY(node)) ? online : offline; } else if (PURPLE_IS_BUDDY(node)) { ret = purple_blist_node_get_parent(node); finch_blist_manager_add_node(ret); @@ -176,7 +176,7 @@ static gpointer meebo_find_parent(PurpleBListNode *node) { if (PURPLE_IS_CONTACT(node)) { PurpleBuddy *buddy = purple_contact_get_priority_buddy(PURPLE_CONTACT(node)); - if (buddy && !PURPLE_IS_BUDDY_ONLINE(buddy)) { + if (buddy && !PURPLE_BUDDY_IS_ONLINE(buddy)) { return &meebo; } } |