Mercurial > pidgin.yaz
diff src/list.h @ 4770:c4c28874ecd3
[gaim-migrate @ 5088]
I want to go to sleep. This is drag-n-drop moving of buddies in the list.
I think it works, but I didn't actually test it... I really should have though;
I can't imagine it working fine as-is. ;)
I'm holding off on the rest of my Edit Buddy List stuff for tomorrow... I love
last minute things, don't I?
Note: I created gaim_blist_members and gaim_blist_groups to reproduce the
effects of the old groups GSList and the members GSList of the group struct
that I removed. This is really sub-optimal and should be replaced to iterate
the Buddy List directly. If someone wants to do that, please do. Even if you
don't want to do that, just review the changes I made and make sure I didn't
do anything stupid. It is past 6am and I'm a bit tired and prone to mistake
making.
Thanks.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Fri, 14 Mar 2003 11:38:21 +0000 |
parents | b6f6a10f9baf |
children | 1e28e7d802a1 |
line wrap: on
line diff
--- a/src/list.h Fri Mar 14 08:27:13 2003 +0000 +++ b/src/list.h Fri Mar 14 11:38:21 2003 +0000 @@ -82,8 +82,6 @@ struct group { GaimBlistNode node; /**< The node that this group inherits from */ char *name; /**< The name of this group. */ - GSList *members; /**< The buddies in this group. This is different from node.child in that it will only - contain buddies. */ }; @@ -119,6 +117,29 @@ }; /**************************************************************************/ +/** Public Utility Functions */ +/**************************************************************************/ +/*@{*/ + +/** + * Returns a GSList of the groups + */ +GSList *gaim_blist_groups(); + +/** + * Returns a GSList of the members of a group node. + * + * It's obviously much faster to recurse the GaimBlistNode linked list + * then using this function. You should try to avoid using it. Only use it + * when you're about to make a milestone release in a few hours and are desperately + * trying to add a critical feature + * + * @param group The group + */ +GSList *gaim_blist_members(struct group *group); +/*@}*/ + +/**************************************************************************/ /** @name Buddy List API */ /**************************************************************************/ /*@{*/ @@ -294,7 +315,6 @@ */ void gaim_blist_remove_group(struct group *group); - /** * Returns the alias of a buddy. *