[f-spot] Normalize query text before comparing with tag names.



commit 97fa71019ab4ebbd048bf6849a92e020df234186
Author: Daniel Köb <daniel koeb peony at>
Date:   Mon Jun 7 21:49:01 2010 +0200

    Normalize query text before comparing with tag names.

 src/Widgets/FindBar.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/Widgets/FindBar.cs b/src/Widgets/FindBar.cs
index e9d38e5..d03c27c 100644
--- a/src/Widgets/FindBar.cs
+++ b/src/Widgets/FindBar.cs
@@ -10,6 +10,7 @@
 
 using System;
 using System.Collections;
+using System.Text;
 using System.Text.RegularExpressions;
 using Gtk;
 using Gdk;
@@ -519,6 +520,8 @@ namespace FSpot.Widgets {
 			if (Completing)
 				return false;
 
+			key = key == null ? null : key.Normalize(NormalizationForm.FormC);
+
 			// If this is the fist comparison for this key, convert the key (which is the entire search string)
 			// into just the part that is relevant to completing this tag name.
 			if (key != last_key) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]