mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-17 02:42:54 +02:00
Add a parser for desktop entries and similar files with a .ini-like
2004-10-23 Matthias Clasen <mclasen@redhat.com> * glib/gkeyfile.h: * glib/gkeyfile.c: Add a parser for desktop entries and similar files with a .ini-like syntax. (#139974, Ray Strode) * glib/glib.h: Include gkeyfile.h * glib/Makefile.am (libglib_2_0_la_SOURCES): Add gkeyfile.c (glibsubinclude_HEADERS): Add gkeyfile.h * glib/gutils.c (_g_compute_locale_variants): Make this non-static and use it in gkeyfile.c
This commit is contained in:
committed by
Matthias Clasen
parent
8df27c8dd5
commit
bfa8a37a9e
@@ -1660,8 +1660,8 @@ explode_locale (const gchar *locale,
|
||||
* but it is big, ugly, and complicated, so I'm reluctant
|
||||
* to do so when this should handle 99% of the time...
|
||||
*/
|
||||
static GSList *
|
||||
compute_locale_variants (const gchar *locale)
|
||||
GSList *
|
||||
_g_compute_locale_variants (const gchar *locale)
|
||||
{
|
||||
GSList *retval = NULL;
|
||||
|
||||
@@ -1793,7 +1793,7 @@ g_get_language_names ()
|
||||
for (a = alist; *a; a++)
|
||||
{
|
||||
gchar *b = unalias_lang (*a);
|
||||
list = g_slist_concat (list, compute_locale_variants (b));
|
||||
list = g_slist_concat (list, _g_compute_locale_variants (b));
|
||||
}
|
||||
g_strfreev (alist);
|
||||
list = g_slist_append (list, "C");
|
||||
|
Reference in New Issue
Block a user