GSettings: add G_SETTINGS_BIND_INVERT_BOOLEAN flag
authorRyan Lortie <desrt@desrt.ca>
Tue, 3 Aug 2010 06:08:03 +0000 (02:08 -0400)
committerRyan Lortie <desrt@desrt.ca>
Tue, 3 Aug 2010 06:09:10 +0000 (02:09 -0400)
commitca3b7b75bff00ea05c967eea06e2c3397da17e41
tree693350cbcff3b3f4613a428f3ad339fbc5e11051
parentdd2bbc95330355d5ff044dc76649e41ee5063894
GSettings: add G_SETTINGS_BIND_INVERT_BOOLEAN flag

When binding a boolean setting to a boolean property, invert the values.
This avoids the requirement for writing a pair of mapping functions for
this extremely common case.

Add a test.

https://bugzilla.gnome.org/show_bug.cgi?id=625833
gio/gsettings.c
gio/gsettings.h
gio/tests/gsettings.c
gio/tests/org.gtk.test.gschema.xml