From: <sa...@us...> - 2006-08-30 05:07:57
|
Revision: 17085 Author: sadrul Date: 2006-08-29 22:07:43 -0700 (Tue, 29 Aug 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=17085&view=rev Log Message: ----------- 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. Modified Paths: -------------- trunk/console/gntblist.c trunk/console/libgnt/gnttree.c Modified: trunk/console/gntblist.c =================================================================== --- trunk/console/gntblist.c 2006-08-30 04:19:14 UTC (rev 17084) +++ trunk/console/gntblist.c 2006-08-30 05:07:43 UTC (rev 17085) @@ -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); + } } } Modified: trunk/console/libgnt/gnttree.c =================================================================== --- trunk/console/libgnt/gnttree.c 2006-08-30 04:19:14 UTC (rev 17084) +++ trunk/console/libgnt/gnttree.c 2006-08-30 05:07:43 UTC (rev 17085) @@ -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; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |