Remove GdkWChar deprecated code

This commit is contained in:
Javier Jardón
2010-06-19 23:01:14 +02:00
parent ca046f0cfb
commit 3c8a54b2f7
10 changed files with 3 additions and 553 deletions

View File

@ -39,34 +39,3 @@ gdk_set_locale (void)
return setlocale (LC_ALL, NULL);
}
gchar *
gdk_wcstombs (const GdkWChar *src)
{
gchar *mbstr;
gint length = 0;
gint i;
while (src[length] != 0)
length++;
mbstr = g_new (gchar, length + 1);
for (i = 0; i < length + 1; i++)
mbstr[i] = src[i];
return mbstr;
}
gint
gdk_mbstowcs (GdkWChar *dest, const gchar *src, gint dest_max)
{
gint i;
for (i = 0; i < dest_max && src[i]; i++)
dest[i] = src[i];
return i;
}