Revision: 130 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=130&view=rev Author: eht16 Date: 2008-07-20 18:22:59 +0000 (Sun, 20 Jul 2008)
Log Message: ----------- Replace deprecated g_strncasecmp() with g_ascii_strncasecmp().
Modified Paths: -------------- trunk/spellcheck/ChangeLog trunk/spellcheck/src/spellcheck.c
Modified: trunk/spellcheck/ChangeLog =================================================================== --- trunk/spellcheck/ChangeLog 2008-07-20 18:18:09 UTC (rev 129) +++ trunk/spellcheck/ChangeLog 2008-07-20 18:22:59 UTC (rev 130) @@ -2,6 +2,7 @@
* src/spellcheck.c: Remove temporary testing code. + Replace deprecated g_strncasecmp() with g_ascii_strncasecmp().
2008-07-16 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/spellcheck/src/spellcheck.c =================================================================== --- trunk/spellcheck/src/spellcheck.c 2008-07-20 18:18:09 UTC (rev 129) +++ trunk/spellcheck/src/spellcheck.c 2008-07-20 18:22:59 UTC (rev 130) @@ -551,12 +551,10 @@ static const gchar *get_default_lang(void) { const gchar *lang = g_getenv("LANG"); - if (lang != NULL) + if (NZV(lang)) { - if (g_strncasecmp(lang, "C", 1) == 0) + if (g_ascii_strncasecmp(lang, "C", 1) == 0) lang = "en"; - else if (lang[0] == 0) - lang = "en"; } else lang = "en";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org