[gnome-calendar/gbsneto/gtk4: 18/37] event-editor/notes-section: Port to GTK4
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gbsneto/gtk4: 18/37] event-editor/notes-section: Port to GTK4
- Date: Wed, 26 Jan 2022 16:31:54 +0000 (UTC)
commit 2dc73bfe957e4dd9985bff3437253f7cdcd9be25
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Jan 14 11:25:15 2022 -0300
event-editor/notes-section: Port to GTK4
src/gui/event-editor/gcal-notes-section.c | 4 ++--
src/gui/event-editor/gcal-notes-section.h | 4 ++--
src/gui/event-editor/gcal-notes-section.ui | 7 +------
src/theme/Adwaita.css | 1 -
4 files changed, 5 insertions(+), 11 deletions(-)
---
diff --git a/src/gui/event-editor/gcal-notes-section.c b/src/gui/event-editor/gcal-notes-section.c
index 52314a6c..613fe3d6 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
{
- GtkBin parent;
+ AdwBin 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, GTK_TYPE_BIN,
+G_DEFINE_TYPE_WITH_CODE (GcalNotesSection, gcal_notes_section, ADW_TYPE_BIN,
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 f9b4dab1..ccf93e3e 100644
--- a/src/gui/event-editor/gcal-notes-section.h
+++ b/src/gui/event-editor/gcal-notes-section.h
@@ -20,11 +20,11 @@
#pragma once
-#include <gtk/gtk.h>
+#include <adwaita.h>
G_BEGIN_DECLS
#define GCAL_TYPE_NOTES_SECTION (gcal_notes_section_get_type())
-G_DECLARE_FINAL_TYPE (GcalNotesSection, gcal_notes_section, GCAL, NOTES_SECTION, GtkBin)
+G_DECLARE_FINAL_TYPE (GcalNotesSection, gcal_notes_section, GCAL, NOTES_SECTION, AdwBin)
G_END_DECLS
diff --git a/src/gui/event-editor/gcal-notes-section.ui b/src/gui/event-editor/gcal-notes-section.ui
index 4b19336f..6e3d7e58 100644
--- a/src/gui/event-editor/gcal-notes-section.ui
+++ b/src/gui/event-editor/gcal-notes-section.ui
@@ -1,23 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
- <template class="GcalNotesSection" parent="GtkBin">
- <property name="can_focus">False</property>
+ <template class="GcalNotesSection" parent="AdwBin">
<style>
<class name="notes-section" />
</style>
-
<child>
<object class="GtkBox">
- <property name="visible">True</property>
<style>
<class name="frame" />
</style>
<child>
<object class="GtkTextView" id="notes_text">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="top_margin">6</property>
<property name="bottom_margin">6</property>
diff --git a/src/theme/Adwaita.css b/src/theme/Adwaita.css
index a572f1ea..fa9c4b05 100644
--- a/src/theme/Adwaita.css
+++ b/src/theme/Adwaita.css
@@ -501,7 +501,6 @@ monthpopover > box {
.notes-section .frame {
border-radius: 8px;
- -gtk-outline-radius: 7px;
border-color: alpha(@borders, 0.7);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]