Mercurial > pidgin.yaz
diff console/gntblist.c @ 15161:c6b79e535eb8
[gaim-migrate @ 17946]
Experimental search-as-you-type in GntTree. Press "/" to enter the search-mode,
and when you're done, press escape to cancel. The search-mode remains active
for 4 seconds before returning to normal.
Someone should update the manual, and possibly enhance the behaviour.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 10 Dec 2006 11:26:17 +0000 |
parents | d308c7c6f669 |
children | 1bcf37440a05 |
line wrap: on
line diff
--- a/console/gntblist.c Sun Dec 10 09:38:02 2006 +0000 +++ b/console/gntblist.c Sun Dec 10 11:26:17 2006 +0000 @@ -1362,11 +1362,13 @@ } else if (strcmp(text, GNT_KEY_CTRL_O) == 0) { gaim_prefs_set_bool(PREF_ROOT "/showoffline", !gaim_prefs_get_bool(PREF_ROOT "/showoffline")); - } else if (strcmp(text, "t") == 0) { - gg_blist_toggle_tag_buddy(gnt_tree_get_selection_data(GNT_TREE(ggblist->tree))); - gnt_bindable_perform_action_named(GNT_BINDABLE(ggblist->tree), "move-down"); - } else if (strcmp(text, "a") == 0) { - gg_blist_place_tagged(gnt_tree_get_selection_data(GNT_TREE(ggblist->tree))); + } else if (GNT_TREE(ggblist->tree)->search == NULL) { + if (strcmp(text, "t") == 0) { + gg_blist_toggle_tag_buddy(gnt_tree_get_selection_data(GNT_TREE(ggblist->tree))); + gnt_bindable_perform_action_named(GNT_BINDABLE(ggblist->tree), "move-down"); + } else if (strcmp(text, "a") == 0) { + gg_blist_place_tagged(gnt_tree_get_selection_data(GNT_TREE(ggblist->tree))); + } } else return FALSE;