diff --git a/data/ui/source-dialog.ui b/data/ui/source-dialog.ui index 68504b03..f8a52dbf 100644 --- a/data/ui/source-dialog.ui +++ b/data/ui/source-dialog.ui @@ -40,6 +40,7 @@ False True True + False True @@ -259,7 +260,7 @@ Cancel - True + True True @@ -268,7 +269,7 @@ Add - True + True False True diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c index a993753e..6e017e11 100644 --- a/src/gcal-source-dialog.c +++ b/src/gcal-source-dialog.c @@ -714,10 +714,6 @@ gcal_source_dialog_set_mode (GcalSourceDialog *dialog, edit_mode = (mode == GCAL_SOURCE_DIALOG_MODE_EDIT); gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (priv->headerbar), edit_mode); - gtk_widget_set_visible (priv->cancel_button, !edit_mode); - gtk_widget_set_visible (priv->add_button, !edit_mode); - gtk_widget_set_visible (priv->edit_grid, edit_mode); - gtk_widget_set_visible (priv->notebook, !edit_mode); gtk_stack_set_visible_child_name (GTK_STACK (priv->stack), edit_mode ? "edit" : "create"); if (!edit_mode)