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:
Matthias Clasen
2004-10-23 06:16:42 +00:00
committed by Matthias Clasen
parent 8df27c8dd5
commit bfa8a37a9e
10 changed files with 2859 additions and 3 deletions

View File

@@ -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");