summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2011-05-23 14:20:50 -0400
committerDavid Zeuthen <davidz@redhat.com>2011-05-23 14:20:50 -0400
commit9ea5e49955cb44d05cbaa404df7bac6c2587e33a (patch)
tree0e45f8f92e1afac53e6016a20d1b5ab29e035914
parent8983aceb0a2db04fb5520eb637f3991a5932261a (diff)
Add Calendar switch to google show_account UI
Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r--src/goabackend/goagoogleprovider.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/goabackend/goagoogleprovider.c b/src/goabackend/goagoogleprovider.c
index c38b893..f7475fe 100644
--- a/src/goabackend/goagoogleprovider.c
+++ b/src/goabackend/goagoogleprovider.c
@@ -336,7 +336,9 @@ show_account (GoaProvider *provider,
GOA_PROVIDER_CLASS (goa_google_provider_parent_class)->show_account (provider, client, object, vbox, table);
goa_util_add_row_editable_label_from_keyfile (table, object, _("Email Address"), "Identity", FALSE);
+ goa_util_add_heading (table, _("Use this account for"));
goa_util_add_row_switch_from_keyfile (table, object, _("Mail"), "MailEnabled");
+ goa_util_add_row_switch_from_keyfile (table, object, _("Calendar"), "CalendarEnabled");
}
/* ---------------------------------------------------------------------------------------------------- */
@@ -346,6 +348,7 @@ add_account_key_values (GoaOAuthProvider *provider,
GVariantBuilder *builder)
{
g_variant_builder_add (builder, "{ss}", "MailEnabled", "true");
+ g_variant_builder_add (builder, "{ss}", "CalendarEnabled", "true");
}
/* ---------------------------------------------------------------------------------------------------- */