[glib/new-gsettings] write l10n to compiled schema
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/new-gsettings] write l10n to compiled schema
- Date: Thu, 15 Apr 2010 03:19:19 +0000 (UTC)
commit 193c926d8a0e2f222ffb00fdda3b693ab697d4b5
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Apr 14 21:43:19 2010 -0400
write l10n to compiled schema
gio/gschema-compile.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/gschema-compile.c b/gio/gschema-compile.c
index f5d4796..ccee15f 100644
--- a/gio/gschema-compile.c
+++ b/gio/gschema-compile.c
@@ -239,6 +239,10 @@ end_element (GMarkupParseContext *context,
else if (strcmp (element_name, "key") == 0)
{
+ if (state->l10n)
+ gvdb_item_set_options (state->key,
+ g_variant_new_parsed ("{'l10n': < %s >}",
+ state->l10n));
gvdb_item_set_value (state->key, state->value);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]