7748 Commits

Author SHA1 Message Date
Vincent Untz
8aae9c5b1f Remove GSettingsSchemaDir class and move gconf-only code to gconf parser 2010-04-18 14:22:47 -07:00
Vincent Untz
d020617c2a Fix simple format parser to accept l10n contexts with a space 2010-04-17 17:59:30 -04:00
Vincent Untz
15c28d90fb Add xml schema parser to converter
This makes it possible to easily move an XML schema to the simple
format if wanted.

Also fix a small issue when outputting a range in the simple format.
2010-04-17 17:54:46 -04:00
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
Matthias Clasen
8f09d24c3a Add a testcase for message context and UTF-8 in messages 2010-04-17 00:45:26 -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
Matthias Clasen
5636b0777e Add pointer to an example conversion 2010-04-17 00:12:12 -04:00
Matthias Clasen
7424114d46 Make the tests build 2010-04-17 00:10:12 -04:00
Matthias Clasen
41c1f3dd2b Add some advice for dealing with unset/default values. 2010-04-17 00:08:01 -04:00
Vincent Untz
f33a45e1fb Add org.gtk.test.gschema-simple
Gives a good idea of how the simple schema format looks like right now.
2010-04-17 00:04:34 -04:00
Ryan Lortie
9e59edacf7 migration docs tweaks 2010-04-17 00:00:24 -04:00
Matthias Clasen
dbe65858b2 Cosmetic fixes in gkeyfilesettingsbackend.h 2010-04-16 23:39:59 -04:00
Matthias Clasen
64f20c45cd Flesh out the migration guide more
Add sections about change sets, data migration, default values, etc.
2010-04-16 23:27:25 -04:00
Matthias Clasen
1184f003ce Add a test for future API
This tests the coming G_SETTINGS_BIND_GET_NO_CHANGE flag.
Test-driven and all that...
2010-04-16 23:27:25 -04:00
Matthias Clasen
3b560a129b Cosmetics 2010-04-16 23:27:25 -04:00
Vincent Untz
d17c77ce95 Improve error messages in schema converter 2010-04-16 23:25:13 -04:00
Ryan Lortie
eedfbdf80f g_settings_bind() fixes
- track sensitivity changes
 - move vuntz-mapping code to new file
 - option to only get initial value from settings
2010-04-16 23:04:10 -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
Matthias Clasen
6363ddeb76 Some wording changes in the docs
A few typo fixes included as well.
2010-04-16 21:39:18 -04:00
Matthias Clasen
ad198566aa Man page tweaks 2010-04-16 20:37:09 -04:00
Vincent Untz
41d50f655d Do not crash when binding with no schema
There's already a g_critical() call for this later on.
2010-04-16 19:23:14 -04:00
Vincent Untz
0b72c678c7 Do not blindly fail if default mapping function can't handle the binding
It's perfectly okay to have no specific mapping function for get if the
caller is not interested in get anyway.
2010-04-16 19:19:02 -04:00
Matthias Clasen
2a1e228408 Add context attribute to DTD 2010-04-16 19:03:50 -04:00
Matthias Clasen
ca51cd6f45 Fix a parameter name mismatch that gives gtk-doc heartburn 2010-04-16 18:36:36 -04:00
Matthias Clasen
20fe1e25ea More doc cleanups 2010-04-16 18:36:16 -04:00
Matthias Clasen
c3c7263b0b Add new convenience api to docs 2010-04-16 18:28:38 -04:00
Matthias Clasen
788d082dcd Some more details about bindings 2010-04-16 18:00:51 -04:00
Matthias Clasen
bf25ce26b3 Cosmetic fix 2010-04-16 17:52:56 -04:00
Matthias Clasen
97e34bd9fb Documentation fixes 2010-04-16 17:51:59 -04:00
Matthias Clasen
c057ec2dd6 Fix binding test failures 2010-04-16 17:33:43 -04:00
Matthias Clasen
644e9c8984 Some more binding tests 2010-04-16 17:30:49 -04:00
Matthias Clasen
0629f96c67 A first binding test 2010-04-16 16:57:05 -04:00
Matthias Clasen
4c9105c3e5 Document --schema-id 2010-04-16 15:50:24 -04:00
Matthias Clasen
a55ec73fa4 Add a destroy notify for the user_data in the binding api 2010-04-16 15:47:30 -04:00
Matthias Clasen
741a4cb25f Document binding api 2010-04-16 15:45:55 -04:00
Ryan Lortie
4b62609783 removed unused gio-marshallers 2010-04-16 15:31:59 -04:00
Ryan Lortie
31b389788f GSettings: new signal setup 2010-04-16 15:31:59 -04:00