From cbf5d8e10bd9a8123c3bddf6214e672bf65e1f3d Mon Sep 17 00:00:00 2001 From: Hari Rana Date: Tue, 2 Jun 2026 12:24:41 -0400 Subject: [PATCH] event-editor/schedule-section: Update editability of widgets Part-of: --- src/gui/event-editor/gcal-schedule-section.blp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/event-editor/gcal-schedule-section.blp b/src/gui/event-editor/gcal-schedule-section.blp index 065527cd..ef2a3fd1 100644 --- a/src/gui/event-editor/gcal-schedule-section.blp +++ b/src/gui/event-editor/gcal-schedule-section.blp @@ -5,6 +5,7 @@ template $GcalScheduleSection: $GcalEventEditorSection { Adw.InlineViewSwitcher { stack: schedule_type_stack; homogeneous: true; + sensitive: bind template.dialog as <$GcalEventEditorDialog>.writable; } Adw.ViewStack schedule_type_stack { @@ -22,11 +23,13 @@ template $GcalScheduleSection: $GcalEventEditorSection { $GcalDateChooserRow start_date_row { title: _("Start Date"); notify::date => $on_start_date_changed_cb(template) not-swapped; + editable: bind template.dialog as <$GcalEventEditorDialog>.writable; } $GcalDateChooserRow end_date_row { title: _("End Date"); notify::date => $on_end_date_changed_cb(template) not-swapped; + editable: bind template.dialog as <$GcalEventEditorDialog>.writable; } }; } @@ -44,12 +47,14 @@ template $GcalScheduleSection: $GcalEventEditorSection { date-label: _("Start Date"); time-label: _("Start Time"); notify::date-time => $on_start_date_time_changed_cb(template) not-swapped; + editable: bind template.dialog as <$GcalEventEditorDialog>.writable; } $GcalDateTimeChooser end_date_time_chooser { date-label: _("End Date"); time-label: _("End Time"); notify::date-time => $on_end_date_time_changed_cb(template) not-swapped; + editable: bind template.dialog as <$GcalEventEditorDialog>.writable; } }; } @@ -57,6 +62,7 @@ template $GcalScheduleSection: $GcalEventEditorSection { Adw.PreferencesGroup { margin-top: 12; + sensitive: bind template.dialog as <$GcalEventEditorDialog>.writable; Adw.ComboRow repeat_combo { title: _("Repeat");