Re: Bug 24179



On Fri, Jun 14, 2002 at 06:48:36PM +0300, Ecmel Ercan wrote:
> Hi,
> 
> The problem is, there aren't any g_ascii_* functions in the GTK+ 1.2
> series.

what about including the needed code form the gtk 2 ?
like this:

#if (GLIB_MAJOR_VERSION < 2)

gchar
g_ascii_tolower
(gchar c)
{
  if (c >= 'A' && c <= 'Z')
	return c - 'A' + 'a';
  else
	return c;
}

gchar*
g_ascii_strdown (const gchar *str, gssize len)
{
 gchar *result, *s;

 g_return_val_if_fail (str != NULL, NULL);

 if (len < 0)
 len = strlen (str);

 result = g_strndup (str, len);
 for (s = result; *s; s++)
 	*s = g_ascii_tolower (*s);
 return result;
}

#endif



> _______________________________________________
> gnome-i18n mailing list
> gnome-i18n@gnome.org
> http://mail.gnome.org/mailman/listinfo/gnome-i18n

-- 
Ki ça vos våye bén,
Pablo Saratxaga

http://www.srtxg.easynet.be/		PGP Key available, key ID: 0x8F0E4975
[you can write me in Walloon, Spanish, French, English, Italian or Portuguese]



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