GNOME Bugzilla – Bug 737665
Disable the remove button for locked accounts
Last modified: 2015-04-13 12:26:42 UTC
See bug 737656 for what a locked account is. Currently, trying to remove such an account will end up in an error message being shown in a popup dialog. Instead we can do a little better by simply disable the remove button.
Created attachment 287457 [details] [review] online-accounts: Disable the remove button for locked accounts
Review of attachment 287457 [details] [review]: Looks good for master and gnome-3-14. ::: panels/online-accounts/cc-online-accounts-panel.c @@ +588,3 @@ + + account = goa_object_peek_account (object); + is_locked = goa_account_get_is_locked (account); Seeing as you don't do any retval checks on goa_object_peek_account, you could shorten this to: is_locked = goa_account_get_is_locked (goa_object_peek_account (object));
Created attachment 301453 [details] [review] online-accounts: Disable the remove button for locked accounts Pushed after addressing Bastien's comment.
(In reply to Bastien Nocera from comment #2) > Review of attachment 287457 [details] [review] [review]: > > Looks good for master and gnome-3-14. I held back from pushing to gnome-3-14 because the corresponding gnome-online-accounts property was only added in 3.15.1. It is easy to back port it, but the API freeze is in place and I don't know if FleetCommander is currently using it or not. Up to you.