diff --git a/src/gui/event-editor/gcal-event-editor-dialog.blp b/src/gui/event-editor/gcal-event-editor-dialog.blp index 23a86a1d..dc978933 100644 --- a/src/gui/event-editor/gcal-event-editor-dialog.blp +++ b/src/gui/event-editor/gcal-event-editor-dialog.blp @@ -37,10 +37,8 @@ template $GcalEventEditorDialog: Adw.Dialog { revealed: bind template.writable inverted; }; - Adw.PreferencesGroup { - $GcalSummarySection summary_section { - sensitive: bind template.writable; - } + $GcalSummarySection summary_section { + sensitive: bind template.writable; } Adw.PreferencesGroup { diff --git a/src/gui/event-editor/gcal-summary-section.blp b/src/gui/event-editor/gcal-summary-section.blp index 1d9a8aa8..f305c5f0 100644 --- a/src/gui/event-editor/gcal-summary-section.blp +++ b/src/gui/event-editor/gcal-summary-section.blp @@ -1,21 +1,13 @@ using Gtk 4.0; using Adw 1; -template $GcalSummarySection: Adw.Bin { - ListBox { - selection-mode: none; +template $GcalSummarySection: Adw.PreferencesGroup { + Adw.EntryRow summary_entry { + title: _("Title"); + changed => $on_summary_entry_text_changed_cb(template) not-swapped; + } - styles [ - "boxed-list", - ] - - Adw.EntryRow summary_entry { - title: _("Title"); - changed => $on_summary_entry_text_changed_cb(template) not-swapped; - } - - Adw.EntryRow location_entry { - title: _("Location"); - } + Adw.EntryRow location_entry { + title: _("Location"); } } diff --git a/src/gui/event-editor/gcal-summary-section.c b/src/gui/event-editor/gcal-summary-section.c index c27abd9f..7e4f182e 100644 --- a/src/gui/event-editor/gcal-summary-section.c +++ b/src/gui/event-editor/gcal-summary-section.c @@ -40,7 +40,7 @@ struct _GcalSummarySection static void gcal_event_editor_section_iface_init (GcalEventEditorSectionInterface *iface); -G_DEFINE_TYPE_WITH_CODE (GcalSummarySection, gcal_summary_section, ADW_TYPE_BIN, +G_DEFINE_TYPE_WITH_CODE (GcalSummarySection, gcal_summary_section, ADW_TYPE_PREFERENCES_GROUP, G_IMPLEMENT_INTERFACE (GCAL_TYPE_EVENT_EDITOR_SECTION, gcal_event_editor_section_iface_init)) /* diff --git a/src/gui/event-editor/gcal-summary-section.h b/src/gui/event-editor/gcal-summary-section.h index 0f0fe4a6..7ad7fbac 100644 --- a/src/gui/event-editor/gcal-summary-section.h +++ b/src/gui/event-editor/gcal-summary-section.h @@ -25,6 +25,6 @@ G_BEGIN_DECLS #define GCAL_TYPE_SUMMARY_SECTION (gcal_summary_section_get_type()) -G_DECLARE_FINAL_TYPE (GcalSummarySection, gcal_summary_section, GCAL, SUMMARY_SECTION, AdwBin) +G_DECLARE_FINAL_TYPE (GcalSummarySection, gcal_summary_section, GCAL, SUMMARY_SECTION, AdwPreferencesGroup) G_END_DECLS