changeset 4795:433ff974bee6

[gaim-migrate @ 5115] I think this makes dragging buddies a little better, but I could be wrong. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 16 Mar 2003 02:20:06 +0000
parents 642444078976
children 15f4f0ae5d5e
files src/buddy.c
diffstat 1 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Sun Mar 16 00:34:10 2003 +0000
+++ b/src/buddy.c	Sun Mar 16 02:20:06 2003 +0000
@@ -349,14 +349,19 @@
 			if (GAIM_BLIST_NODE_IS_BUDDY(n)) {
 				struct buddy *b = (struct buddy*)n;
 				if (GAIM_BLIST_NODE_IS_BUDDY(node)) {
-					if (position == GTK_TREE_VIEW_DROP_AFTER) {
-						gaim_blist_add_buddy(b, (struct group*)node->parent, node);
-					} else if (position == GTK_TREE_VIEW_DROP_BEFORE) {
-						gaim_blist_add_buddy(b, (struct group*)node->parent, node->prev);
+					switch(position) {
+						case GTK_TREE_VIEW_DROP_AFTER:
+						case GTK_TREE_VIEW_DROP_INTO_OR_AFTER:
+							gaim_blist_add_buddy(b, (struct group*)node->parent, node);
+							break;
+						case GTK_TREE_VIEW_DROP_BEFORE:
+						case GTK_TREE_VIEW_DROP_INTO_OR_BEFORE:
+							gaim_blist_add_buddy(b, (struct group*)node->parent, node->prev);
+							break;
 					}
 				} else if (GAIM_BLIST_NODE_IS_GROUP(node)) {
 					gaim_blist_add_buddy(b, (struct group*)node, NULL);
-				}	
+				}
 			} else if (GAIM_BLIST_NODE_IS_GROUP(n)) {
 				struct group *g = (struct group*)n;
 				if (GAIM_BLIST_NODE_IS_GROUP(node)) {