event-editor-dialog: Make 'event' property read-only

It is not meant to be set externally.
This commit is contained in:
Georges Basile Stavracas Neto
2020-10-31 16:15:54 -03:00
parent b0cdca78b1
commit 4c24103bae
@@ -458,10 +458,6 @@ gcal_event_editor_dialog_set_property (GObject *object,
switch (prop_id)
{
case PROP_EVENT:
gcal_event_editor_dialog_set_event (self, g_value_get_object (value), FALSE);
break;
case PROP_CONTEXT:
g_assert (self->context == NULL);
self->context = g_value_dup_object (value);
@@ -511,7 +507,7 @@ gcal_event_editor_dialog_class_init (GcalEventEditorDialogClass *klass)
"event of the dialog",
"The event being edited",
GCAL_TYPE_EVENT,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
/**
* GcalEventEditorDialog::manager: