[glib/new-gsettings] Change the name of the schema cache to 'gschemas.compiled'



commit 7440c7e7e8a989568beb04fd6af88b2274107aae
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Apr 14 12:39:08 2010 -0400

    Change the name of the schema cache to 'gschemas.compiled'

 gio/gschema-compile.c |    2 +-
 gio/gsettingsschema.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/gschema-compile.c b/gio/gschema-compile.c
index b1d5730..6432b8c 100644
--- a/gio/gschema-compile.c
+++ b/gio/gschema-compile.c
@@ -323,7 +323,7 @@ main (int argc, char **argv)
     }
 
   if (!(table = parse_gschema_files (matched.gl_pathv, &error)) ||
-      !gvdb_table_write_contents (table, "compiled", &error))
+      !gvdb_table_write_contents (table, "gschemas.compiled", &error))
     {
       fprintf (stderr, "%s\n", error->message);
       return 1;
diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c
index 559231d..97ba39e 100644
--- a/gio/gsettingsschema.c
+++ b/gio/gsettingsschema.c
@@ -94,7 +94,7 @@ initialise_schema_sources (void)
           gchar *filename;
           GvdbTable *table;
 
-          filename = g_strdup_printf ("%s/glib-2.0/schemas/compiled", *dir);
+          filename = g_build_filename (*dir, "glib-2.0/schemas", "gschemas.compiled", NULL);
           table = gvdb_table_new (filename, TRUE, NULL);
 
           if (table != NULL)
@@ -108,7 +108,7 @@ initialise_schema_sources (void)
           gchar *filename;
           GvdbTable *table;
 
-          filename = g_build_filename (path, "compiled", NULL);
+          filename = g_build_filename (path, "gschemas.compiled", NULL);
           table = gvdb_table_new (filename, TRUE, NULL);
 
           if (table != NULL)



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