[anjuta] symbol-db: #588387 make typeahead searching caseless
- From: Massimo Cora' <mcora src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjuta] symbol-db: #588387 make typeahead searching caseless
- Date: Mon, 13 Jul 2009 21:34:05 +0000 (UTC)
commit 28a342fac866951abed29d576933ba39c9e2501c
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Mon Jul 13 23:27:40 2009 +0200
symbol-db: #588387 make typeahead searching caseless
plugins/symbol-db/symbol-db-view-locals.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-view-locals.c b/plugins/symbol-db/symbol-db-view-locals.c
index 26cf3c9..be68abc 100644
--- a/plugins/symbol-db/symbol-db-view-locals.c
+++ b/plugins/symbol-db/symbol-db-view-locals.c
@@ -253,8 +253,9 @@ sdb_view_locals_search_equal_func (GtkTreeModel *model, gint column,
gtk_tree_model_get (model, iter, column, &str, -1);
- pattern = g_strdup_printf ("*%s*", key);
- res = g_pattern_match_simple (pattern, str);
+ pattern = g_strdup_printf (".*%s.*", key);
+ res = g_regex_match_simple (pattern, str, G_REGEX_CASELESS,
+ 0);
g_free (pattern);
g_free (str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]