[gnome-calendar/calendar-editor] source-dialog: only allow removable sources to be removed



commit fdfd3293995f27a3ba34ecb741820941dae73b26
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Feb 10 11:35:33 2015 -0200

    source-dialog: only allow removable sources to be removed

 src/gcal-source-dialog.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 2e99bf3..9f32128 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]