edit-dialog: hide Delete button when creating a new event

Because we don't want to delete an event that is not created
This commit is contained in:
Georges Basile Stavracas Neto
2014-12-05 00:41:34 -02:00
parent 23a7cda500
commit 8f4d6be1bf
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -713,6 +713,9 @@ event_activated (GcalView *view,
init_edit_dialog (GCAL_WINDOW (user_data));
data = gcal_event_widget_get_data (event_widget);
gcal_edit_dialog_set_event_is_new (
GCAL_EDIT_DIALOG (priv->edit_dialog),
FALSE);
gcal_edit_dialog_set_event_data (
GCAL_EDIT_DIALOG (priv->edit_dialog),
data);