changeset 22999:6843c06f5c6a

Pressing arrow keys should reset the search timer.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 18 May 2008 20:00:26 +0000
parents a9dcc0187af0
children d678dbea81a4
files finch/libgnt/gnttree.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gnttree.c	Sun May 18 19:59:27 2008 +0000
+++ b/finch/libgnt/gnttree.c	Sun May 18 20:00:26 2008 +0000
@@ -812,11 +812,11 @@
 			changed = FALSE;
 		if (changed) {
 			redraw_tree(tree);
-			g_source_remove(tree->priv->search_timeout);
-			tree->priv->search_timeout = g_timeout_add(SEARCH_TIMEOUT, search_timeout, tree);
 		} else {
 			gnt_bindable_perform_action_key(GNT_BINDABLE(tree), text);
 		}
+		g_source_remove(tree->priv->search_timeout);
+		tree->priv->search_timeout = g_timeout_add(SEARCH_TIMEOUT, search_timeout, tree);
 		return TRUE;
 	} else if (text[0] == ' ' && text[1] == 0) {
 		/* Space pressed */