From 140dd3b145f98e7198fca140939b1f5e09bbfb4f Mon Sep 17 00:00:00 2001 From: Hari Rana Date: Mon, 21 Apr 2025 12:48:53 -0300 Subject: [PATCH] event-editor/notes: Make it an AdwPreferencesRow --- src/gui/event-editor/gcal-notes-section.c | 4 ++-- src/gui/event-editor/gcal-notes-section.h | 2 +- src/gui/event-editor/gcal-notes-section.ui | 7 +++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/gui/event-editor/gcal-notes-section.c b/src/gui/event-editor/gcal-notes-section.c index 5256b3da..c19a6ceb 100644 --- a/src/gui/event-editor/gcal-notes-section.c +++ b/src/gui/event-editor/gcal-notes-section.c @@ -27,7 +27,7 @@ struct _GcalNotesSection { - AdwBin parent; + AdwPreferencesRow parent; GtkTextView *notes_text; @@ -37,7 +37,7 @@ struct _GcalNotesSection static void gcal_event_editor_section_iface_init (GcalEventEditorSectionInterface *iface); -G_DEFINE_TYPE_WITH_CODE (GcalNotesSection, gcal_notes_section, ADW_TYPE_BIN, +G_DEFINE_TYPE_WITH_CODE (GcalNotesSection, gcal_notes_section, ADW_TYPE_PREFERENCES_ROW, G_IMPLEMENT_INTERFACE (GCAL_TYPE_EVENT_EDITOR_SECTION, gcal_event_editor_section_iface_init)) enum diff --git a/src/gui/event-editor/gcal-notes-section.h b/src/gui/event-editor/gcal-notes-section.h index ccf93e3e..39de1d6f 100644 --- a/src/gui/event-editor/gcal-notes-section.h +++ b/src/gui/event-editor/gcal-notes-section.h @@ -25,6 +25,6 @@ G_BEGIN_DECLS #define GCAL_TYPE_NOTES_SECTION (gcal_notes_section_get_type()) -G_DECLARE_FINAL_TYPE (GcalNotesSection, gcal_notes_section, GCAL, NOTES_SECTION, AdwBin) +G_DECLARE_FINAL_TYPE (GcalNotesSection, gcal_notes_section, GCAL, NOTES_SECTION, AdwPreferencesRow) G_END_DECLS diff --git a/src/gui/event-editor/gcal-notes-section.ui b/src/gui/event-editor/gcal-notes-section.ui index 2d7ebf4f..db94177a 100644 --- a/src/gui/event-editor/gcal-notes-section.ui +++ b/src/gui/event-editor/gcal-notes-section.ui @@ -1,9 +1,12 @@ -