| 802 changed = FALSE; |
802 changed = FALSE; |
| 803 if (changed) { |
803 if (changed) { |
| 804 redraw_tree(tree); |
804 redraw_tree(tree); |
| 805 g_source_remove(tree->priv->search_timeout); |
805 g_source_remove(tree->priv->search_timeout); |
| 806 tree->priv->search_timeout = g_timeout_add(SEARCH_TIMEOUT, search_timeout, tree); |
806 tree->priv->search_timeout = g_timeout_add(SEARCH_TIMEOUT, search_timeout, tree); |
| |
807 } else { |
| |
808 gnt_bindable_perform_action_key(GNT_BINDABLE(tree), text); |
| 807 } |
809 } |
| 808 return TRUE; |
810 return TRUE; |
| 809 } else if (text[0] == ' ' && text[1] == 0) { |
811 } else if (text[0] == ' ' && text[1] == 0) { |
| 810 /* Space pressed */ |
812 /* Space pressed */ |
| 811 GntTreeRow *row = tree->current; |
813 GntTreeRow *row = tree->current; |
| 912 start_search(GntBindable *bindable, GList *list) |
914 start_search(GntBindable *bindable, GList *list) |
| 913 { |
915 { |
| 914 GntTree *tree = GNT_TREE(bindable); |
916 GntTree *tree = GNT_TREE(bindable); |
| 915 if (tree->priv->search) |
917 if (tree->priv->search) |
| 916 return FALSE; |
918 return FALSE; |
| |
919 GNT_WIDGET_SET_FLAGS(GNT_WIDGET(tree), GNT_WIDGET_DISABLE_ACTIONS); |
| 917 tree->priv->search = g_string_new(NULL); |
920 tree->priv->search = g_string_new(NULL); |
| 918 tree->priv->search_timeout = g_timeout_add(SEARCH_TIMEOUT, search_timeout, tree); |
921 tree->priv->search_timeout = g_timeout_add(SEARCH_TIMEOUT, search_timeout, tree); |
| 919 return TRUE; |
922 return TRUE; |
| 920 } |
923 } |
| 921 |
924 |