Make last-user-context property binding work by using mapping functions
authorJonathan Maw <jonathan.maw@codethink.co.uk>
Tue, 12 Jun 2012 17:15:40 +0000 (18:15 +0100)
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>
Wed, 13 Jun 2012 08:46:02 +0000 (09:46 +0100)
commit974ef8bbb35b8fa9d9fff8af8ab300f8e066de83
tree11645444f031ed7e1dcb1c942ab3901a855a8909
parent6aca942bc9929edeb454960408a7a1952dfd2d97
Make last-user-context property binding work by using mapping functions

g_settings_bind() cannot automatically convert between GVariant and
GValue if the value type is a dictionary (a{sas} in our case). We
therefore have to implement the mapping ourselves to bind the GSettings
key and the last-user-context D-Bus property together.
luc-handler/luc-handler-service.c