im.pidgin.pidgin: f15685093f43b483d8ab8b683cb32ecddbb23727

sadrul at pidgin.im sadrul at pidgin.im
Mon Nov 12 11:46:02 EST 2007


-----------------------------------------------------------------
Revision: f15685093f43b483d8ab8b683cb32ecddbb23727
Ancestor: 81354ef444517d1122c9f56ca7320d5b5694387b
Author: sadrul at pidgin.im
Date: 2007-11-11T19:42:02
Branch: im.pidgin.pidgin

Modified files:
        finch/gntblist.c

ChangeLog: 

Cancel the typeahead search when escape is pressed.

-------------- next part --------------
============================================================
--- finch/gntblist.c	4c5667356c36d91aa36a84e9ca20286ce747992b
+++ finch/gntblist.c	32a0c2b9dc6eecda673c84ec7a9afa07957b678c
@@ -1506,6 +1506,8 @@ key_pressed(GntWidget *widget, const cha
 {
 	if (text[0] == 27 && text[1] == 0) {
 		/* Escape was pressed */
+		if (gnt_tree_is_searching(GNT_TREE(ggblist->tree)))
+			gnt_bindable_perform_action_named(GNT_BINDABLE(ggblist->tree), "end-search", NULL);
 		remove_peripherals(ggblist);
 	} else if (strcmp(text, GNT_KEY_CTRL_O) == 0) {
 		purple_prefs_set_bool(PREF_ROOT "/showoffline",


More information about the Commits mailing list