From 4d978a33f68108a5fd263f2cd8bbc05c2c7a2783 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 10 Feb 2015 11:35:33 -0200 Subject: [PATCH] source-dialog: only allow removable sources to be removed --- src/gcal-source-dialog.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c index 2e99bf34..9f32128a 100644 --- a/src/gcal-source-dialog.c +++ b/src/gcal-source-dialog.c @@ -586,6 +586,9 @@ gcal_source_dialog_set_source (GcalSourceDialog *dialog, /* FIXME: account information on subtitle */ gtk_header_bar_set_subtitle (GTK_HEADER_BAR (priv->headerbar), ""); + /* toggle the remove button */ + gtk_widget_set_sensitive (priv->remove_button, e_source_get_removable (source)); + /* unblock signals */ g_signal_handlers_unblock_by_func (priv->calendar_color_button, color_set, dialog); g_signal_handlers_unblock_by_func (priv->name_entry, name_entry_text_changed, dialog);