pidgin: a1474abb: Allow printable chars when searching the...
wabz at pidgin.im
wabz at pidgin.im
Wed Nov 4 21:55:35 EST 2009
-----------------------------------------------------------------
Revision: a1474abb75af23a970dc1157cc5746f2d6dce353
Ancestor: 49ffd1b636d756307e3e96c9ce11c130f9d02831
Author: wabz at pidgin.im
Date: 2009-11-05T02:50:48
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/a1474abb75af23a970dc1157cc5746f2d6dce353
Modified files:
finch/libgnt/gnttree.c
ChangeLog:
Allow printable chars when searching the tree
-------------- next part --------------
============================================================
--- finch/libgnt/gnttree.c d9cb52881de1074984623684be86bcadd6c2e66e
+++ finch/libgnt/gnttree.c 04e5815e0f58358bc23f36e45b0d6b7d42e4c95c
@@ -815,7 +815,7 @@ gnt_tree_key_pressed(GntWidget *widget,
gnt_widget_activate(widget);
} else if (tree->priv->search) {
gboolean changed = TRUE;
- if (isalnum(*text)) {
+ if (g_unichar_isprint(*text)) {
tree->priv->search = g_string_append_c(tree->priv->search, *text);
} else if (g_utf8_collate(text, GNT_KEY_BACKSPACE) == 0) {
if (tree->priv->search->len)
More information about the Commits
mailing list