# HG changeset patch # User Sadrul Habib Chowdhury # Date 1156914463 0 # Node ID a7e29c0b51f4532900cd983435161595d97d810a # Parent d1d275a95d0222f52fb9a689b5f77d2e645b034a [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 diff -r d1d275a95d02 -r a7e29c0b51f4 console/gntblist.c --- a/console/gntblist.c Wed Aug 30 04:19:14 2006 +0000 +++ b/console/gntblist.c Wed Aug 30 05:07:43 2006 +0000 @@ -977,9 +977,11 @@ if (gaim_presence_is_idle(pre)) { time_t idle = gaim_presence_get_idle_time(pre); - char *st = gaim_str_seconds_to_string(time(NULL) - idle); - g_string_append_printf(str, _("\nIdle: %s"), st); - g_free(st); + if (idle > 0) { + char *st = gaim_str_seconds_to_string(time(NULL) - idle); + g_string_append_printf(str, _("\nIdle: %s"), st); + g_free(st); + } } } diff -r d1d275a95d02 -r a7e29c0b51f4 console/libgnt/gnttree.c --- 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; }