event-editor/summary-section: Inherit AdwPreferencesGroup

This is a prerequisite to make GcalEventEditorSection require
inheriting AdwPreferencesGroup.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/781>
This commit is contained in:
Hari Rana
2026-06-23 14:10:35 -04:00
parent cbee9bbb60
commit 240dc649ce
4 changed files with 11 additions and 21 deletions
@@ -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 {
+7 -15
View File
@@ -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");
}
}
+1 -1
View File
@@ -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))
/*
+1 -1
View File
@@ -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