From 7e68bfb150caf62b22d6d874dc7e0ed31df5fafd Mon Sep 17 00:00:00 2001 From: Yash Singh Date: Fri, 10 Mar 2017 18:27:01 +0530 Subject: [PATCH] source-dialog: change label to "Expired" if account credentials expire Earlier Calendar showed an account as "on" even when the credentials had expired. This patch fixes the issue and instead shows "Expired" label upon expiration of credentials. https://bugzilla.gnome.org/show_bug.cgi?id=761766 --- src/gcal-source-dialog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c index f89b25be..42759e51 100644 --- a/src/gcal-source-dialog.c +++ b/src/gcal-source-dialog.c @@ -2058,6 +2058,7 @@ add_goa_account (GcalSourceDialog *dialog, gtk_label_set_label (GTK_LABEL (provider_label), goa_account_get_provider_name (account)); gtk_label_set_label (GTK_LABEL (account_label), goa_account_get_identity (account)); gtk_label_set_label (GTK_LABEL (enabled_label), + goa_account_get_attention_needed (account) ? _("Expired") : goa_account_get_calendar_disabled (account) ? _("Off") : _("On")); gtk_image_set_from_icon_name (GTK_IMAGE (icon), icon_name, GTK_ICON_SIZE_DIALOG); gtk_image_set_pixel_size (GTK_IMAGE (icon), 32);