Mercurial > pidgin
diff libpurple/plugins/autoaccept.c @ 24314:0d0088b03745
Hide the blistnode, buddy, contact, group, and chat structs
Updated the libpurple plugins to use api rather than the structs directly
| author | Gary Kramlich <grim@reaperworld.com> |
|---|---|
| date | Tue, 28 Oct 2008 04:22:57 +0000 |
| parents | f23d1643808e |
| children | ea62e934c80b 0e08c847517d |
line wrap: on
line diff
--- a/libpurple/plugins/autoaccept.c Tue Oct 28 03:05:32 2008 +0000 +++ b/libpurple/plugins/autoaccept.c Tue Oct 28 04:22:57 2008 +0000 @@ -104,7 +104,7 @@ return; } - node = node->parent; + node = purple_blist_node_get_parent(node); g_return_if_fail(PURPLE_BLIST_NODE_IS_CONTACT(node)); pref = purple_prefs_get_string(PREF_PATH); @@ -179,7 +179,7 @@ save_cb(PurpleBlistNode *node, int choice) { if (PURPLE_BLIST_NODE_IS_BUDDY(node)) - node = node->parent; + node = purple_blist_node_get_parent(node); g_return_if_fail(PURPLE_BLIST_NODE_IS_CONTACT(node)); purple_blist_node_set_int(node, "autoaccept", choice); } @@ -190,7 +190,7 @@ char *message; if (PURPLE_BLIST_NODE_IS_BUDDY(node)) - node = node->parent; + node = purple_blist_node_get_parent(node); g_return_if_fail(PURPLE_BLIST_NODE_IS_CONTACT(node)); message = g_strdup_printf(_("When a file-transfer request arrives from %s"),
