[gnome-calendar/calendar-editor] source-dialog: hide default source check when calendar is readonly



commit 6e003d7a6347ea4bc02102a3830f8cb7ab2e08bf
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]