[gedit] Check for the language and the variant not just the language.



commit 0841034bea17313037367aabd25df9da06d0bb70
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Nov 29 21:24:20 2009 +0100

    Check for the language and the variant not just the language.

 plugins/spell/gedit-spell-checker-language.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/spell/gedit-spell-checker-language.c b/plugins/spell/gedit-spell-checker-language.c
index 2129570..ae7e242 100644
--- a/plugins/spell/gedit-spell-checker-language.c
+++ b/plugins/spell/gedit-spell-checker-language.c
@@ -429,7 +429,7 @@ gedit_spell_checker_language_from_key (const gchar *key)
 	{
 		const GeditSpellCheckerLanguage *l = (const GeditSpellCheckerLanguage *)langs->data;
 
-		if (g_ascii_strncasecmp (key, l->abrev, strlen (l->abrev)) == 0)
+		if (g_ascii_strcasecmp (key, l->abrev) == 0)
 			return l;
 
 		langs = g_slist_next (langs);



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