[gnome-builder/wip/chergert/shortcuts] shortcuts: handle upcase a bit more gracefully



commit 02455ba0a6c6cc79102ce0f0035010b9e62f2618
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]