summaryrefslogtreecommitdiff
path: root/mission-control-plugins
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-11-13 19:36:44 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-01-29 19:28:30 +0000
commitb1681efb1e541072bd23d70d2a25e2a521f2d271 (patch)
tree635cc1490eba9ae050eb2ad9e76ea1548e954fdb /mission-control-plugins
parentcae73ae1d7634b761f5121298359b6f45ebfbe25 (diff)
Call set_attribute, set_parameter to delete them
It really doesn't make a great deal of sense to use the same callback to delete individual keys, and to delete accounts. McdAccountManagerDefault already dealt with that case, but the two test plugins didn't. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=27727
Diffstat (limited to 'mission-control-plugins')
-rw-r--r--mission-control-plugins/account-storage.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mission-control-plugins/account-storage.c b/mission-control-plugins/account-storage.c
index 5ad31b6c..53b00be0 100644
--- a/mission-control-plugins/account-storage.c
+++ b/mission-control-plugins/account-storage.c
@@ -504,7 +504,8 @@ mcp_account_storage_get (const McpAccountStorage *storage,
* @am: an #McpAccountManager instance
* @account: the unique name of the account
* @attribute: the name of an attribute, e.g. "DisplayName"
- * @value: a value to associate with @attribute
+ * @value: (allow-none): a value to associate with @attribute,
+ * or %NULL to delete
* @flags: flags influencing how the attribute is to be stored
*
* Store an attribute.
@@ -547,7 +548,8 @@ mcp_account_storage_set_attribute (McpAccountStorage *storage,
* @account: the unique name of the account
* @parameter: the name of a parameter, e.g. "account" (note that there
* is no "param-" prefix here)
- * @value: a value to associate with @parameter
+ * @value: (allow-none): a value to associate with @parameter,
+ * or %NULL to delete
* @flags: flags influencing how the parameter is to be stored
*
* Store a parameter.