GNOME Bugzilla – Bug 657905
Add API to enable/disable Mail, Calendar, Contacts, Chat & Documents on an account
Last modified: 2012-04-02 13:09:56 UTC
In Empathy we have a GtkSwitch to quickly enable or disable an IM account. I think it would be good to be able to use it with GOA accounts so user won't have to open GOA to do enable/disable accounts (I'll certainly do that with my test accounts). That means we need API to enable/disable the Chat API on a GOA account and the control center widget should watch for changes and update its UI accordingly.
Created attachment 211033 [details] [review] Add API to enable/disable Mail, Calendar, Contacts, Chat & Documents You have to use these methods on the GoaAccount instance to enable or disable Mail, Chat, etc., which basically will add or remove the org.gnome.OnlineAccounts.{Mail, Chat, etc.} as the case maybe: * goa_account_{get,set}_mail_disabled * goa_account_{get,set}_chat_disabled * ... I think this should address your requirements. Right?
Created attachment 211048 [details] [review] Add API to enable/disable Mail, Calendar, Contacts, Chat & Documents Updated the documentation to mention that the interfaces are added or removed asynchronously.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.