source-dialog: only allow removable sources to be removed
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
17f56895dd
commit
4d978a33f6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user