[gnome-calendar/gbsneto/edit-dialog-cleanup: 7/11] event-editor-dialog: Make 'event' property read-only




commit 4c24103bae1567e429fc57f5e5a9ab0c52dbaa32
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 18840af9..0d9eb085 100644
--- a/src/gui/event-editor/gcal-event-editor-dialog.c
+++ b/src/gui/event-editor/gcal-event-editor-dialog.c
@@ -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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]