event-editor/notes: Make it an AdwPreferencesRow
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user