changeset 15563:0b5db3387ded

merge of '491b12f6ff9efa13852cc40405bac9bd52b6a8b9' and 'fdbbb7eccaa94a05c61e3e900be3507a63aa9445'
author Richard Laager <rlaager@wiktel.com>
date Mon, 05 Feb 2007 03:37:27 +0000
parents 0c61cd8e5898 (current diff) feee34cfff5f (diff)
children 2286aac43694
files pidgin/gtkgaim.h pidgin/pixmaps/emblems/16/message-pending.png pidgin/pixmaps/emblems/16/scalable/message-pending.svg pidgin/pixmaps/status/16/invisible.png
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/console/libgnt/gnttree.c	Sun Feb 04 21:14:41 2007 +0000
+++ b/console/libgnt/gnttree.c	Mon Feb 05 03:37:27 2007 +0000
@@ -1195,17 +1195,16 @@
 				tree->top = get_prev(row);
 			else
 				tree->top = get_next(row);
-			if (tree->current == row)
-				tree->current = tree->top;
 		}
-		else if (tree->current == row)
+		if (tree->current == row)
 		{
 			if (tree->current != tree->root)
 				tree->current = get_prev(row);
 			else
 				tree->current = get_next(row);
+			tree_selection_changed(tree, row, tree->current);
 		}
-		else if (tree->bottom == row)
+		if (tree->bottom == row)
 		{
 			tree->bottom = get_prev(row);
 		}