event-editor/notes: Make it an AdwPreferencesRow

This commit is contained in:
Hari Rana
2025-04-21 13:32:45 -04:00
parent 9281b1b964
commit 140dd3b145
3 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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
+5 -2
View File
@@ -1,9 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="GcalNotesSection" parent="AdwBin">
<template class="GcalNotesSection" parent="AdwPreferencesRow">
<property name="activatable">False</property>
<property name="focusable">False</property>
<style>
<class name="entry" />
<class name="notes-section" />
<class name="card" />
</style>
<child>