From 4a9fca3aeaec9e4626ec24bda6a942efc3525b7f Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 9 Feb 2015 14:40:48 -0200 Subject: [PATCH] source-dialog: hide default source check when calendar is readonly --- 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 81525990..8c0b8e80 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));