Bind GSetting key to D-Bus property
authorJonathan Maw <jonathan.maw@codethink.co.uk>
Tue, 12 Jun 2012 16:16:51 +0000 (17:16 +0100)
committerJonathan Maw <jonathan.maw@codethink.co.uk>
Tue, 12 Jun 2012 16:16:51 +0000 (17:16 +0100)
commit6aca942bc9929edeb454960408a7a1952dfd2d97
tree82e18af717f3d61d6b4bbe317795eaddda25aaeb
parenteb19a39e56b0cb7ae35c0259a11ca7524c5f0532
Bind GSetting key to D-Bus property

Modifications made to luc-handler/luc-handler-service.c
In struct _LUCHandlerService:
- Added GSettings object to store the settings with the handler.

In luc_handler_service_init:
- Initialized the GSettings object.
- Bound the last-user-context of the settings to the last-user-context
  of the interface.

In luc_handler_service_finalize:
- Finalize the GSettings object (It is unnecessary to unbind the settings
  because they belong to the object they are bound to, and are unbound
  when the object is finalized)
luc-handler/luc-handler-service.c