finch/libgnt/gnttree.c

changeset 18832
177a16b4b9f3
parent 18830
7e9784f65d5d
child 19040
d1748b3e70a0
child 19184
72003b472bdc
equal deleted inserted replaced
18831:ed4592c036ec 18832:177a16b4b9f3
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
923 end_search_action(GntBindable *bindable, GList *list) 926 end_search_action(GntBindable *bindable, GList *list)
924 { 927 {
925 GntTree *tree = GNT_TREE(bindable); 928 GntTree *tree = GNT_TREE(bindable);
926 if (tree->priv->search == NULL) 929 if (tree->priv->search == NULL)
927 return FALSE; 930 return FALSE;
931 GNT_WIDGET_UNSET_FLAGS(GNT_WIDGET(tree), GNT_WIDGET_DISABLE_ACTIONS);
928 end_search(tree); 932 end_search(tree);
929 redraw_tree(tree); 933 redraw_tree(tree);
930 return TRUE; 934 return TRUE;
931 } 935 }
932 936

mercurial