[gnome-builder/wip/chergert/shortcuts: 18/24] shortcuts: handle upcase a bit more gracefully
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/shortcuts: 18/24] shortcuts: handle upcase a bit more gracefully
- Date: Sun, 30 Aug 2015 02:54:30 +0000 (UTC)
commit e7ada441c1225da31c591a2b09832fb6d3d33d9e
Author: Christian Hergert <christian hergert me>
Date: Thu Aug 27 22:45:22 2015 -0700
shortcuts: handle upcase a bit more gracefully
src/keybindings/gb-shortcuts-window.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/keybindings/gb-shortcuts-window.c b/src/keybindings/gb-shortcuts-window.c
index 6646b3c..696a602 100644
--- a/src/keybindings/gb-shortcuts-window.c
+++ b/src/keybindings/gb-shortcuts-window.c
@@ -291,6 +291,7 @@ gb_shortcuts_window__search_entry__changed (GbShortcutsWindow *self,
{
g_autoptr(IdePatternSpec) spec = NULL;
GHashTableIter iter;
+ g_autofree gchar *query = NULL;
const gchar *text;
gpointer key;
gpointer value;
@@ -306,7 +307,8 @@ gb_shortcuts_window__search_entry__changed (GbShortcutsWindow *self,
return;
}
- spec = ide_pattern_spec_new (text);
+ query = g_utf8_casefold (text, -1);
+ spec = ide_pattern_spec_new (query);
g_hash_table_iter_init (&iter, self->widget_keywords);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]