GSettings schemas: allow for zero items in schema
authorRyan Lortie <desrt@desrt.ca>
Mon, 26 Sep 2011 15:21:55 +0000 (11:21 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 1 Oct 2011 13:34:44 +0000 (09:34 -0400)
commit65b7a20c67406f9309b2b8e1e7d7aaef98b81d02
tree39e7a7616df2ad09e2c4cf37c9db2982d95366af
parente147d7aa2f1e4aba555df32b80763e2bc8199798
GSettings schemas: allow for zero items in schema

GVDB deals with empty lists by returning NULL for the list instead of a
zero-length (non-NULL) strv.  We can work around that in GSettingsSchema
by checking for the NULL case and treating it like a zero-length list.

https://bugzilla.gnome.org/show_bug.cgi?id=660147
gio/gsettingsschema.c