[gnome-calendar] source-dialog: hide default source check when calendar is readonly
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] source-dialog: hide default source check when calendar is readonly
- Date: Mon, 25 May 2015 16:47:45 +0000 (UTC)
commit 4a9fca3aeaec9e4626ec24bda6a942efc3525b7f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Feb 9 14:40:48 2015 -0200
source-dialog: hide default source check when calendar is readonly
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 8152599..8c0b8e8 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -278,6 +278,7 @@ gcal_source_dialog_set_source (GcalSourceDialog *dialog,
/* default source check button */
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->default_check), (source == default_source));
+ gtk_widget_set_visible (priv->default_check, !gcal_manager_is_client_writable (priv->manager, source));
/* title */
gtk_header_bar_set_title (GTK_HEADER_BAR (priv->headerbar), e_source_get_display_name (source));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]