[gnome-calendar/gbsneto/edit-dialog-cleanup: 18/23] event-editor-dialog: Make 'event' property read-only
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gbsneto/edit-dialog-cleanup: 18/23] event-editor-dialog: Make 'event' property read-only
- Date: Sat, 31 Oct 2020 18:47:18 +0000 (UTC)
commit 067cd1d2e0618560dc65770c39a39a86812d0876
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Oct 31 15:23:09 2020 -0300
event-editor-dialog: Make 'event' property read-only
It is not meant to be set externally.
src/gui/event-editor/gcal-event-editor-dialog.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/gui/event-editor/gcal-event-editor-dialog.c b/src/gui/event-editor/gcal-event-editor-dialog.c
index b9c2a34a..58b74c59 100644
--- a/src/gui/event-editor/gcal-event-editor-dialog.c
+++ b/src/gui/event-editor/gcal-event-editor-dialog.c
@@ -455,10 +455,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);
@@ -508,7 +504,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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]