7614 Commits

Author SHA1 Message Date
Ryan Lortie
f23ef4c472 oops. 2010-04-14 21:36:24 -04:00
Ryan Lortie
7b41a660dd require explicit <child> in schemas 2010-04-14 21:36:24 -04:00
Vincent Untz
9d22ef333b Monitor the memory backend keyfile with G_FILE_MONITOR_SEND_MOVED 2010-04-14 21:26:01 -04:00
Vincent Untz
d6d1b2db9f Do not fail in g_settings_backend_keys_changed() if path is "" 2010-04-14 20:59:26 -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
Ryan Lortie
c837c2940a backend: changed callbacks 2010-04-14 20:30:49 -04:00
Ryan Lortie
bbb38cf9af return reference on GSettingsBackend 2010-04-14 20:30:49 -04:00
Matthias Clasen
d084a0940f Some more tests surrounding delay-apply 2010-04-14 20:27:50 -04:00
Matthias Clasen
d0a715cfe2 Add a test for revert 2010-04-14 20:27:50 -04:00
Matthias Clasen
4e21b3b0ec Some doc trivia 2010-04-14 20:27:50 -04:00
Matthias Clasen
1a4e7701b4 Some notification tests 2010-04-14 20:27:50 -04:00
Vincent Untz
7d069d36f4 Save the type of the setting in the keyfile
Without the type, there's no way to decide if a value is an int32 or
int16, for example.
2010-04-14 20:14:19 -04:00
Ryan Lortie
74caa8592d gvdb file format tweak 2010-04-14 19:50:05 -04:00
Ryan Lortie
7eecee26f8 g_settings_get_child 2010-04-14 19:45:05 -04:00
Ryan Lortie
178225a04a add safety against corrupt gvdb files 2010-04-14 19:42:26 -04:00
Ryan Lortie
2ec083787a vuntz wants me to install some headers 2010-04-14 19:27:21 -04:00
Ryan Lortie
65caadffcb trap expected error in gsettings basic test 2010-04-14 18:32:40 -04:00
Matthias Clasen
c445b216aa Some more tests 2010-04-14 18:22:37 -04:00
Matthias Clasen
cd4b67eb94 Revert the test env thing
...not needed for now. Setting the env.vars from the testcase itself.
2010-04-14 18:22:37 -04:00
Matthias Clasen
0b1b1582b8 More tests 2010-04-14 18:22:37 -04:00
Matthias Clasen
d1f1b8c5b0 Generate the schemas cache automatically
This needs to be revisited for !srcdir builds later.
2010-04-14 18:22:37 -04:00
Matthias Clasen
c2f446c547 Start to set up test environment for gsettings tests 2010-04-14 18:22:36 -04:00
Matthias Clasen
b54ba5ae20 Add a todo 2010-04-14 18:22:36 -04:00
Vincent Untz
28839ce593 Fix various issues in memory backend
- path saved without trailing slash in keyfile
- pass "" prefix to g_settings_backend_keys_changed() instead of NULL
- ignore context that is an empty string
2010-04-14 18:14:50 -04:00
Vincent Untz
4542b00660 Add assertion in the memory backend 2010-04-14 18:11:05 -04:00
Ryan Lortie
b2e7035181 prepend path to sets 2010-04-14 18:10:38 -04:00
Ryan Lortie
ea111f51ae remove delayed-apply property 2010-04-14 18:05:03 -04:00
Vincent Untz
d1664c0e3c Add back memory backend that got removed, and update it
It should work with the latest GSettingsBackend.
2010-04-14 18:01:06 -04:00
Ryan Lortie
1908b1c61b :D :D :D :D 2010-04-14 17:59:52 -04:00
Ryan Lortie
2e491134a5 missing file 2010-04-14 17:15:44 -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
Ryan Lortie
66bc7ced39 trivial fixups 2010-04-14 13:25:47 -04:00
Ryan Lortie
c993002c2d really disruptive breaking of stuff 2010-04-14 13:23:01 -04:00
Ryan Lortie
171d293b6f signals changes 2010-04-14 13:21:33 -04:00
Ryan Lortie
7bb26044ee type checks 2010-04-14 13:21:33 -04:00
Matthias Clasen
7440c7e7e8 Change the name of the schema cache to 'gschemas.compiled' 2010-04-14 12:39:08 -04:00
Matthias Clasen
9c64ed313e Add a schema parameter to g_settings_new with_path 2010-04-14 12:27:09 -04:00
Matthias Clasen
214b3ec658 drop locked flag from GSettings
It is not really needed, and delayed-apply is a construct-only property
anyway
2010-04-14 12:09:57 -04:00
Matthias Clasen
964e21989a Update the DTD to reflect future plans and add a way to use local schema caches 2010-04-14 11:48:36 -04:00
Matthias Clasen
4bc82beae5 Add some more schema docs 2010-04-14 00:22:50 -04:00
Matthias Clasen
102c0dacab Add some GSettingsSchema documentation 2010-04-13 23:51:29 -04:00
Matthias Clasen
f7b5f5594c Add g_settings_schema_get_type 2010-04-13 23:23:00 -04:00
Matthias Clasen
47c8dc8878 Tweak include guards 2010-04-13 23:20:09 -04:00
Matthias Clasen
fe3e6f85be Add a stub long description 2010-04-13 23:17:31 -04:00
Matthias Clasen
e5e94c4890 Some docs for GSettings 2010-04-13 22:58:12 -04:00
Vincent Untz
6eb4e56b36 Add a simple GKeyFile-based store for the memory backend
It needs some testing, but the simple test application works fine.
2010-04-13 22:03:29 -04:00
Vincent Untz
5c6c22bc55 Update doc of g_settings_backend_changed
The items argument always has to be NULL-terminated, regardless of the
value of n_items, for consistency.
2010-04-13 22:02:30 -04:00
Vincent Untz
e8bc704bda Make GSettingsSchema work
A static variable has to be marked as static...
2010-04-13 22:01:37 -04:00
Ryan Lortie
14173184a7 GSettings seems to work now 2010-04-13 16:46:40 -04:00