24 Commits

Author SHA1 Message Date
Vincent Untz
aac33fb2a8 Make the gconf schema parser a class 2010-04-17 11:59:57 -04:00
Vincent Untz
57613df216 Add functions to check if schema id, key names, etc. are valid
They always return true for now, and that's needed for the gconf
migration, but it can be changed later.
2010-04-17 11:37:45 -04:00
Vincent Untz
fb19c20ca1 Make the simple schema parser a class
This makes it easier to track the current state, and, for example, put
the line number in error messages.
2010-04-17 11:13:12 -04:00
Vincent Untz
32817b8eba Raise errors when a token with no child gets a child 2010-04-17 01:37:18 -04:00
Vincent Untz
6fd153d478 Detect more broken indentation cases in schema converter 2010-04-17 01:27:29 -04:00
Vincent Untz
13912013f8 Accept : and = as separators in simple format
Also fix a bug when there's only one token in the line (off-by-one
error).
2010-04-17 01:19:57 -04:00
Vincent Untz
d12bd3eaf3 Call gettext-domain token gettext-domain, for understandability 2010-04-17 00:36:54 -04:00
Vincent Untz
0b2b207bfc Add context attribute to localizable keys when converting gconf schema 2010-04-17 00:33:44 -04:00
Vincent Untz
bc8735a0b6 Do not output two gettext-domain attributes for schemas 2010-04-17 00:22:30 -04:00
Vincent Untz
babcf14d46 Make simple format more consistent 2010-04-17 00:17:04 -04:00
Vincent Untz
d17c77ce95 Improve error messages in schema converter 2010-04-16 23:25:13 -04:00
Vincent Untz
ed0544b305 Support gettext-domain attribute in schema converter 2010-04-16 22:59:07 -04:00
Vincent Untz
461eac0f58 Fix trivial crashes when outputting range/choices in simple format 2010-04-16 22:39:00 -04:00
Vincent Untz
63377bd1de Support l10n attribute in schema converter 2010-04-16 22:38:46 -04:00
Vincent Untz
881261e957 Fix choices output in simple format 2010-04-16 22:25:31 -04:00
Vincent Untz
c4036752ba Fix support for choices/range in schema converter 2010-04-16 22:22:02 -04:00
Vincent Untz
fd619f24e8 Do not crash when converting a gconf schema with no default value 2010-04-16 22:00:27 -04:00
Vincent Untz
9c20ad6806 Add --schema-id option to gsettings-schema-convert
This is useful for easier migration of gconf schemas.
2010-04-16 14:52:07 -04:00
Vincent Untz
9f412ce6ae Really always output typed values for simple format for now
When outputting the format from another source than a gconf schema, we
didn't have this information.
2010-04-15 00:44:56 -04:00
Vincent Untz
3cd8c43304 Add support for range in gsettings-schema-convert 2010-04-15 00:37:53 -04:00
Vincent Untz
4de239deb2 Add child nodes when converting schemas to XML format
Also fix a bug introduced in 7889b612 that was causing the creation of
too many schema nodes.
2010-04-14 22:02:11 -04:00
Vincent Untz
7889b6125b Fix gconf schema convert script to keep leading slash in paths 2010-04-14 20:55:26 -04:00
Vincent Untz
dd4dfd53c5 Do not generate nested schemas for the XML format 2010-04-14 20:35:18 -04:00
Vincent Untz
975cf8a3b3 Add gsettings-schema-convert script
It can be used to convert a gconf schema to either a simple gsettings
schema format or the full xml gsettings schema format.

It also converts from the simple format to the full xml format.
2010-04-14 17:11:30 -04:00