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
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
19b1563aab
commit
7e68bfb150
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user