source-dialog: hide default source check when calendar is readonly
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
a4ffdf0314
commit
4a9fca3aea
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user