Mercurial > pidgin.yaz
diff console/libgnt/gnttree.c @ 14379:a7e29c0b51f4
[gaim-migrate @ 17085]
Parts of Richard Nelson (wabz)'s patch:
Emit the selection-changed signal when you wheel-scroll.
Show the idle-time only when it has an appropriate idle-time.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 30 Aug 2006 05:07:43 +0000 |
parents | 1bd09d355f9e |
children | 4a901f5d1312 |
line wrap: on
line diff
--- a/console/libgnt/gnttree.c Wed Aug 30 04:19:14 2006 +0000 +++ b/console/libgnt/gnttree.c Wed Aug 30 05:07:43 2006 +0000 @@ -614,6 +614,8 @@ static gboolean gnt_tree_clicked(GntWidget *widget, GntMouseEvent event, int x, int y) { + GntTree *tree = GNT_TREE(widget); + GntTreeRow *old = tree->current; if (event == GNT_MOUSE_SCROLL_UP) { action_up(GNT_TREE(widget)); } else if (event == GNT_MOUSE_SCROLL_DOWN) { @@ -645,6 +647,9 @@ } else { return FALSE; } + if (old != tree->current) { + tree_selection_changed(tree, old, tree->current); + } return TRUE; }