[gnome-calendar] source-dialog: change label to "Expired" if account credentials expire
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] source-dialog: change label to "Expired" if account credentials expire
- Date: Mon, 27 Mar 2017 12:10:55 +0000 (UTC)
commit 7e68bfb150caf62b22d6d874dc7e0ed31df5fafd
Author: Yash Singh <yashdev10p gmail com>
Date: Fri Mar 10 18:27:01 2017 +0530
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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index f89b25b..42759e5 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]