GNOME Bugzilla – Bug 731470
IndividualAggregator doesn't listen on changes in primary-store gsettings key
Last modified: 2014-09-12 15:24:18 UTC
From Contacts, I allow the user to change the primary-store at runtime, and since IndividualAggregator doesn't allow to set IndividualAggregator::primary_store I could change it by setting the proper value in the gsetting key. Also, IndividualAggregator doesn't listen for changes of the default-address-book in eds
Created attachment 278214 [details] [review] Hook into gsettings changed signal
Review of attachment 278214 [details] [review]: Can you please add a unit test for this in tests/folks? Make it use the dummy backend like standalone-individuals.vala. Thanks. ::: folks/individual-aggregator.vala @@ +130,3 @@ private SmallSet<Backend> _backends; + private Settings _primary_store_setting = null; This should be nullable, i.e. have type 'Settings?'. @@ +505,3 @@ if (val != null && val != "") { debug ("Setting primary store IDs from GSettings."); Please factor out this common code which handles val. You could probably call _primary_store_setting_changed_cb() directly to initialise.
Created attachment 285828 [details] [review] Make IndividualAggregator listen on settings changes
Created attachment 285829 [details] [review] unit test for the previous change
Great, thanks! Merged to master.